vscode如何折叠(隐藏).d.ts文件

1 配置VSCode

打开Settings,搜索 file nesting

  • File Nesting: Enabled打开
  • File Nesting: Patterns里*.ts增加map和.d.ts配置,如下图

配置完成后,默认会把.d.ts、.js折叠到.ts下,如下图:

2 Explorer中默认折叠

配置搜索expand

更改为alwaysCollapse

Leave a Reply

Your email address will not be published. Required fields are marked *