我正在从Webstorm迁移到Visual Studio Code。Webstorm的性能很差。
Visual Studio Code在查找和导入依赖项方面并不是很有帮助。到目前为止,我一直在手动完成这些操作,但说实话,我宁愿等待15秒钟让Webstorm自动查找和添加我的import,也不愿意手动寻找。
我正在使用@minko-gechev的Angular2种子https://github.com/mgechev/angular2-seed
我在baseDir中有一个tsconfig.json,其内容如下:
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"pretty": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitUseStrict": false,
"noFallthroughCasesInSwitch": true
},
"exclude": [
"node_modules",
"dist",
"typings/index.d.ts",
"typings/modules",
"src"
],
"compileOnSave": false
}
我在src/client目录中有另一个文件,它看起来是这样:
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"allowSyntheticDefaultImports": true
}
}
我不知道为什么会有两个。Angular Seed项目使用TypeScript Gulp构建任务,所以我猜编译是不同的。
我该怎么做才能让VSCode更有帮助呢?