VS Code autocompletion base on word in file

2020-04-05 02:42发布

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.

3条回答
对你真心纯属浪费
2楼-- · 2020-04-05 03:28

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
查看更多
淡お忘
3楼-- · 2020-04-05 03:31
"editor.quickSuggestions": {
        "other": true,
        "comments": true,
        "strings": true
      },
查看更多
你好瞎i
4楼-- · 2020-04-05 03:35

For autocomplete brackets use this setting:

// Complete functions with their parameter signature.
"javascript.suggest.completeFunctionCalls": true
查看更多
登录 后发表回答