10 typescript visual-studio-code angular
我正在使用vscode在angular2项目中工作.有没有办法将具有相同名称和不同扩展名的文件分组,就像Visual Studio一样.
例:
简短的回答是否定的,但您可以隐藏非 ts 文件。
转到文件 -> 首选项 -> 工作区设置,然后在右侧窗格中粘贴:
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
// include the defaults from VS Code
"**/.git": true,
"**/.DS_Store": true,
// exclude .js and .js.map files, when in a TypeScript project
"**/*.js": { "when": "$(basename).ts"},
"**/*.js.map": true
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
931 次 |
| 最近记录: |