Visual Studio Code Automatic Imports

前端 未结 12 1291
轻奢々
轻奢々 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

    I got this working by installing the various plugins below.

    Most of the time things just import by themselves as soon as I type the class name. Alternatively, a lightbulb appears that you can click on. Or you can push F1, and type "import..." and there are various options there too. I kinda use all of them. Also F1 Implement for implementing an interface is helpful, but doesn't always work.

    List of Plugins

    • npm Intellisense
    • ngrx for Angular 2 Snippets
    • TypeScript Toolbox
    • npm
    • TsTools
    • Angular Snippets (Version 9)
    • Types auto installer
    • Debugger for Chrome
    • TypeScript Importer
    • TypeScript Hero
    • vscode-icons
    • Add Angular Files

    Screenshot of Extensions


    *click for full resolution

提交回复
热议问题