How can I disable VSCode's suggestions for lan

2020-04-07 14:32发布

Currently, Visual Studio Code offers helpful hints on common language keywords like for and class and enum (I'm using Typescript). I don't need assistance with these words - they're just noise, blocking me from seeing more relevant entries.

Is there a way I can disable suggestions for 'language keywords' only, but leave all the rest?

3条回答
forever°为你锁心
2楼-- · 2020-04-07 14:59

From vscode 1.33.0 there's a setting: editor.suggest.filteredTypes.

It can be configured per-language too.

"[typescript]": {
    "editor.suggest.filteredTypes": {
        "keyword": false
    }
},

查看更多
聊天终结者
3楼-- · 2020-04-07 15:00

Please note that you now need to use:

"[typescript]": {
  "editor.suggest.showKeywords": false
}

which deprecates:

"[typescript]": {
    "editor.suggest.filteredTypes": {
        "keyword": false
    }
}
查看更多
姐就是有狂的资本
4楼-- · 2020-04-07 15:03

No, as of VS Code 1.21 you cannot filter out just the keyword suggestions in TypeScript and JavaScript.

Please file a feature request if you'd like to see this supported

查看更多
登录 后发表回答