仅在 VSCode 编辑器中显示相关的智能感知建议

时间:2021-01-16 11:39:38

标签: visual-studio-code vscode-settings

这个问题很难解释。 在下图中,如何让 VSCode 仅显示 adjL?我只想要我当前正在编辑的文件中的建议。

limitSuggestions

目前,它显示了我从未使用过的完整变量列表。

1 个答案:

答案 0 :(得分:0)

请看这里:https://code.visualstudio.com/docs/editor/intellisense

将此添加到您的 setting.json 应该可以做到。

"editor.quickSuggestions": {
    "other": false,
    "variable": true
}

但我不建议这样做,因为智能真的很有帮助! ;)

除非你只关心隐藏其他变量而不关心其他类型的提示。