VS代码自动完成基于文件中的单词

Woo*_*ude 7 intellisense javascript-intellisense visual-studio-code

我刚开始使用VS Code,我现在对它非常满意!

我来自Notepad ++,我没有找到与我正在做的事情相同"级别"的任何IDE.直到现在!我非常喜欢VS Code正在做的事情以及所有现代集成技术如何帮助我.

但是我想念NPP做的一件事就是文件中单词的自动完成基础.那么我可以在VS Code中做同样的事情吗?

谢谢.

小智 6

"editor.quickSuggestions": {
        "other": true,
        "comments": true,
        "strings": true
      },
Run Code Online (Sandbox Code Playgroud)


Mat*_*att 0

将其添加到您的settings.json,然后重新启动 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
Run Code Online (Sandbox Code Playgroud)