Public character by name in Visual Studio Code not working?

I work with .js files. This is a medium sized angular project. I want to move on to the definition (the method on the service that I entered on the controller). This does not work - nothing happens when I press F12 or Ctrl + click. Despite the fact that this works in SublimeText, I cannot get it to work here. Perhaps the function is not implemented.

So, I watch the John Papa series on VSC http://johnpapa.net/getting-started-with-visual-studio-code/ And I notice that there is a function to search for a character in all files. This will solve my problem. This is not as good as goto (with F12), but I can move relatively quickly to a character without knowing the name of the file in which it was declared.

http://www.johnpapa.net/wp-content/uploads/2015/04/symbolsearch.png

When I enter it, I get nothing. I press ctrl + p and type # followed by a few letters. I get the "No characters matching" that I type. For some reason, he will not look for my folder?

I have one error: Error displayed in VSC , and this refers to the missing <angular "element. This element, of course, is defined in another file, and I don’t see how this will violate the functionality.

Using version 0.10.1

+6
source share
1 answer

To get IntelliSense you need to install ticks for angular.

Install tsd first:

npm install tsd -g 

Next in your project install angular input

 tsd install angular -rs 

(the s parameter will create tsd.json).

Alternatively install it from VSC itself

Determining the loading type of angular.d.ts

Click on the word angular and select the definition of the load type angular.d.ts

Edit:
"Open character by name" now works only for C # and TypeScript. code.visualstudio.com/Docs/editor/editingevolved

+3
source

All Articles