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就接受补全

相关推荐
伊卡洛斯az38 分钟前
vim的跳转看头文件与分屏
linux·编辑器·vim
散峰而望1 小时前
基本魔法语言函数(一)(C语言)
c语言·开发语言·编辑器·github
Jonathan Star7 小时前
Vue JSON结构编辑器组件设计与实现解析
vue.js·编辑器·json
不染尘.15 小时前
2025_11_7_刷题
开发语言·c++·vscode·算法
这儿有一堆花18 小时前
IDE 开发的一天
ide
swear0119 小时前
VSCODE 插件 rust-analyzer 使用遇到的问题 快捷键查看定义
ide·vscode·rust
pengzhuofan19 小时前
IntelliJ IDEA 常用快捷键
java·ide·intellij-idea
麦克马20 小时前
Visual Studio Code 控制台乱码问题
vscode
Jackson@ML20 小时前
用Visual Studio Code最新版开发C#应用程序
ide·vscode·c#
阿猿收手吧!20 小时前
windows本机vscode通过ssh免密登录远程linux服务器 && git push/pull 免密
服务器·windows·vscode