English 中文(简体)
v 编码 如何不能够接受关于紧急表格的建议
原标题:vscode how to disable accepting suggestion on pressing tab

When type something, vscode show some suggestions, I press tab. the suggestion will autocomplete what I typing.

Now I want to disable that. I want when I press tab, it will not autocomplete.

我不想提出令人难以置信的建议或自动完成,我只是想去掉tab。

This is what I ve got in the setting

"editor.acceptSuggestionOnCommitCharacter": false,
"emmet.triggerExpansionOnTab": false,
"editor.tabCompletion": "off",
"editor.suggest.snippetsPreventQuickSuggestions": false

问题依然存在。

最佳回答

As @HolyBlackCat suggested, disable the command acceptSelectedSuggestion which is triggered with a tab key. You will end up with this in your keybindings.json:

{
    "key": "tab",
    "command": "-acceptSelectedSuggestion",
    "when": "suggestWidgetVisible && textInputFocus"
  },
问题回答

Open keyboard shortcuts -> search acceptSelectedSuggestion -> right click and remove command that has tab as Key binding.

接受的回答是长期工作,但现在却不再工作。 为此,我不得不修改如下内容:

{
        "key"    : "tab",
        "command": "-acceptSelectedSuggestion",
        "when"   : "suggestWidgetHasFocusedSuggestion && suggestWidgetVisible && textInputFocus"
}

You can press right arrow > which accepts what you have written rather than accepting the suggestion





相关问题
VS Code run selection in terminal creating multiple shells

Running selection/line in terminal (shift + enter) started creating opening two shells. The first shell runs commands to activate the environment and start python. The second shell runs the python ...

从案卷中获取简单明朗戈功能——现在可以提供

如果你想到,在纽瓦特被点击之后,如何把服务器的辅助功能从javascript文档中打上下面的几页。 你们必须利用吉大港山区开发计划的要求,把服务器的侧端点称作终端点。 ......

在《科索沃法典》中是否有办法进行沙尘处理

目前,开始学习基因图像处理,我希望在民主选举学会之外使用这种图像,使之更容易编码,因为在处理民主选举学会时,没有很好地掌握合成物的错误。 I ......

Rust Visual Studio Code code completion not working

I m trying to learn Rust and installed the Rust extension for VSCode. But I m not seeing auto-completions for any syntax. I d like to call .trim() on String but I get no completion for it. I read that ...