Visual Studio Code Automatic Imports

前端 未结 12 1300
轻奢々
轻奢々 2020-12-02 11:00

I\'m in the process of making the move from Webstorm to Visual Studio Code. The Performance in Webstorm is abysmal.

Visual studio code isn\'t being very helpful abo

12条回答
  •  无人及你
    2020-12-02 11:37

    Fill the include property in the first level of the JSON-object in the tsconfig.editor.json like here:

    "include": [
      "src/**/*.ts"
    ]
    

    It works for me well.

    Also you can add another Typescript file extensions if it's needed, like here:

    "include": [
      "src/**/*.ts",
      "src/**/*.spec.ts",
      "src/**/*.d.ts"
    ]
    

提交回复
热议问题