我正在从Webstorm迁移到Visual Studio Code.Webstorm中的表现非常糟糕.
Visual Studio代码对于找到我需要的依赖项并导入它们并不是很有帮助.到目前为止,我一直在手动执行此操作,但说实话,我宁愿等待15秒,以便webstorm找到并添加我的导入,必须手动挖掘它.
我正在使用来自@ 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
}
Run Code Online (Sandbox Code Playgroud)
我在我的src/client目录中有另一个看起来像这样:
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"allowSyntheticDefaultImports": true
}
}
Run Code Online (Sandbox Code Playgroud)
我不知道为什么会有两个.angualr种子项目使用typescript gulp构建任务,所以我猜编译是不同的. …