intellisense and code complete for DefinitelyTyped (TypeScript type definitions) on WebStorm IDE

前端 未结 3 862
长情又很酷
长情又很酷 2020-12-03 12:14

How can I get WebStorm IDE to give me code completion for libraries that I\'ve downloaded.

\"JavaScript

3条回答
  •  悲哀的现实
    2020-12-03 12:43

    On Webstorm for mac

    Preferences->Languages&Frameworks->Typescript
    

    Use tsconfig.json should be checked and you should create a tsconfig.json file which contains

    {
      "compilerOptions": {
        "module": "commonjs",
        "target": "es5",
        "sourceMap": true
      },
      "exclude": [
        "node_modules"
      ]
    }
    

提交回复
热议问题