Autocomplete VSCode intelliSense for javascript

I would like Visual Studio Code to automatically fill in all the words in an open document, and not just the individual variables that it finds. What do I need to change in the settings?

edit: version 0.3.0 code during question.

+4
javascript autocomplete visual-studio-code intellisense
source share
3 answers

I just figured it out. This will use all the words on the page for autocomplete.

// Always include all words from the current document. "javascript.suggest.alwaysAllWords": true, // Complete functions with their parameter signature. "javascript.suggest.completeFunctionCalls": true, 
+4
source share

Despite the fact that this question was quite a lot of time, I thought that I could help someone who comes across the same issue.

So here. And this is for the latest version of VS Code at the time of writing.

For true intellisense, that is, for example, you intend to get all the methods associated with the โ€œconsoleโ€ as soon as you press โ€œ.โ€., You can use the corresponding Typescript definition file. Now I agree that this fix is โ€‹โ€‹targeted at node and it needs the same with npm on your system. But still, it works for all the basic JavaScript work you may encounter.

for Linux, for this you need "npm" and install the Typescript Definition Manager (tsd) globally.

 npm install -g tsd 

then within your current project directory (or by going to the project directory) open a terminal window and add the following lines

 tsd query node --action install tsd query express --action install 

then as soon as you open your .js file in the current directory, you will get the correct autofill / intellisense for all DOM objects and other possible things.

This worked for me, and this is the only reason I use VSCode for linux (at least for JavaScript, although I like LightTable too)

for more information (and clarification, if I cannot be clear enough anyway), follow this link:

Node.js applications in VS code

+1
source share

VSCode recently added a new extension for Intellisens javascript / typcript, and it works pretty well. Take a look. https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.VSIntelliCode

0
source share

All Articles