vscode ai代码补全插件 tab键接受失效

打开setting.json

Ctrl+Shift+P (Windows) 快捷键,然后输入setting.json,选择open user那个,路径一般是在C:\Users\Administrator\AppData\Roaming\Code\User

修改增加内容:

c 复制代码
{
    "editor.tabCompletion": "on",
    "editor.acceptSuggestionOnEnter": "on",
    // 添加以下配置
    "editor.suggestSelection": "first",
    "editor.suggest.snippetsPreventQuickSuggestions": false,
    "editor.inlineSuggest.enabled": true,
    "editor.quickSuggestions": {
        "other": true,
        "comments": true,
        "strings": true
    }
}

然后重启或者更新

按 Ctrl+Shift+P (Windows) 或 Cmd+Shift+P (Mac)

输入 "Developer: Reload Window" 重新加载窗口

使用,代码推荐按tab就接受补全

相关推荐
shughui3 小时前
PyCharm 完整教程(旧版本卸载+旧/新版本下载安装+基础使用,2026最新版附安装包)
ide·python·pycharm
2401_835792548 小时前
Codex 启动报错:套接字访问权限错误 (os error 10013) 解法
vscode
公众号-老炮说Java10 小时前
IDEA 2026.1 + Claude Code = 降维打击
java·ide·intellij-idea
白菜欣10 小时前
Linux —《从零上手Vim:核心用法全解析》
linux·编辑器·vim
酿情师12 小时前
OpenCode 详细入门指南,从安装到使用保姆级教程
vscode·visual studio code·cli·opencode
QiZhang | UESTC13 小时前
vscode debug教程
ide·vscode·编辑器
我讲个笑话你可别哭啊13 小时前
Android Studio无线调试连接安卓设备
android·ide·android studio
Garfield200516 小时前
VSCode SSH 连接远程服务器后,Codex 插件登录失败
服务器·vscode·ssh·claude·codex
维吉斯蔡16 小时前
【Ubuntu】Fcitx 搜狗拼音无法在 VS Code 输入中文的修复方案
linux·vscode·ubuntu·bash
MegaDataFlowers17 小时前
解决idea报错不支持发行版本21
java·ide·intellij-idea