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

相关推荐
HarrySunCn5 小时前
如何使用VSCode开发Arduino项目
ide·vscode·单片机·编辑器
知青先生8 小时前
E9项目调试方式
java·ide
面壁的熊猫9 小时前
cursor+cline+MCP(论文agent)
vscode·agent·cursor·mcp
bulucc11 小时前
vim 快捷操作
linux·编辑器·vim
Aspect of twilight13 小时前
vscode python debug方式
ide·vscode·python·debug
Aevget13 小时前
.NET跨平台开发工具Rider v2025.3发布——支持.NET 10
ide·.net·开发工具·rider·rider v2025.3
啃火龙果的兔子14 小时前
vscode中可以使用的免费的AI编程工具有哪些
ide·vscode·ai编程
littlezls15 小时前
在VSCode中运行Python脚本文件时如何传参
vscode·python
宋明炜15 小时前
VSCode + MSYS2 配置 C 语言开发环境(详细步骤)
c语言·ide·vscode
yscript16 小时前
GPU分配BUG: Duplicate GPU detected : rank 1 and rank 0 both on CUDA device d5000
linux·运维·服务器·vscode·bug