Visual Studio Code - Angular 2 Auto Exchange Extension

Just finished customizing the studio visual code for learning Angular 2.

I have currently installed the following extension for TypeScript:

  • TSLint

Along with a new theme, etc. I am curious to know if there is an extension for the following scenario:

Let's say I create a form inside Angular 2, inside this form I would use FormControl, if I do not manually import FormControl from @ angular2 / forms, then of course this will not work, the extension was created, as a result, if I type FormControl, will he warn me and say that you need to import X from X?

The reason I am asking for is because it will help me greatly find out where things live, etc.

Update

So, I spent some time today to continue the search to find the appropriate extensions, I need to automatically import characters from other files and modules, I came across this automatic import of Visual Studio however the extensions specified in OP do not seem to work for all characters. In the image uploaded to the OP, I copied the code when I wrote Pipe, he suggested that I import Pipefrom @angular/core, but when I entered PipeTransformit, he did not give me the import option, instead he just saidCannot find name PipeTransform

Or, if someone who uses Visual Studio code with Angular 2 can specify which extensions they use, it will also be useful.

+4
source share
2
+7
+2

Source: https://habr.com/ru/post/1656795/


All Articles