13

I just begin with VS Code and I'm really happy with it at the moment !

I'm coming from Notepad++ and I didn't found any IDE at the same "level" of it for the things I'm doing.. Until now! I really like what VS Code is doing and how all modern integrated technology is helping me.

But I miss one thing that NPP do is the autocomplete base on word in the file. So can I do the same in VS Code ?

Thanks.

WoofWoofDude
  • 617
  • 1
  • 7
  • 13
  • Could be tough if there's no support for it in the IDE since VSCode doesn't support plugins yet. You might want to go with something higher powered like Visual Studio Community. – thedayturns Jul 08 '15 at 05:00
  • I'm good with VS Code.. I dont want a project manager just a code editor like NPP with more useful functionality. But if I can't do it.. It's okay.. I can live w/o. I hope they implement it in future ! – WoofWoofDude Jul 08 '15 at 05:20
  • http://stackoverflow.com/questions/30793337/vscode-intellisense-autocomplete-for-javascript - Seems this is only available for JavaScript at this time. – GJSmith3rd Jul 09 '15 at 14:44
  • Maybe i do it wrong, but it doesn't work for me. – WoofWoofDude Jul 11 '15 at 02:33
  • Just took the VS Code survey... Exactly what I mentioned in the feedback, plus Ctrl + D to duplicate current line to the line below... Speeds up coding like crazy! – Nasir Oct 19 '16 at 00:34
  • Just found this... for the duplicate line function: https://code.visualstudio.com/docs/customization/keybindings – Nasir Oct 19 '16 at 00:38
  • I have posted a solution that works on the following [link](https://stackoverflow.com/a/44639995/1713103) – emamut Jun 19 '17 at 21:12

3 Answers3

10
"editor.quickSuggestions": {
        "other": true,
        "comments": true,
        "strings": true
      },
0

Add this to your settings.json, and restart vs code:

// Controls how JavaScript IntelliSense works.

// Always include all words from the current document.
"javascript.suggest.alwaysAllWords": true,

// Complete functions with their parameter signature.
"javascript.suggest.useCodeSnippetsOnMethodSuggest": true
Matt
  • 127
  • 8
  • can confirm, mac os sierra vs code 1.21.1, adding these to my user settings json gives them a green underline, on hover it says "Unknown configuration setting" The only other auto complete support I can find is this extension: https://marketplace.visualstudio.com/items?itemName=Atishay-Jain.All-Autocomplete And the "Spaces inside braces" extension. The "indentED" extension might be good. – Devin Rhode Mar 27 '18 at 19:37
  • searching "vs code javascript autocomplete braces" gives some interesting results.. – Devin Rhode Mar 27 '18 at 19:39
  • Highly recommend this matching bracket pair colorizer https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer – Devin Rhode Mar 27 '18 at 19:42
  • Looks like these new settings are on by default : ``` // Controls if the editor should automatically close brackets after opening them "editor.autoClosingBrackets": true, // Controls if the editor should automatically adjust the indentation when users type, paste or move lines. Indentation rules of the language must be available. "editor.autoIndent": true, ``` https://code.visualstudio.com/docs/getstarted/settings – Devin Rhode Mar 27 '18 at 19:53
-1

For autocomplete brackets use this setting:

// Complete functions with their parameter signature.
"javascript.suggest.completeFunctionCalls": true
  • You've missed understand the question. He needs to autocomplete words that are in the file, not the function signatures – benshabatnoam Jan 20 '19 at 20:11