VScode 右键没有转到定义等的菜单

问题:

右键点击该函数出现的结果只能是这样的:

解决:

通过修改 settings.json 文件,以解决问题:

这是原来有问题的配置:

bash 复制代码
{
    "python.autoComplete.extraPaths": [
        "/home/robot/1-temp_make/devel/lib/python2.7/dist-packages",
        "/opt/ros/melodic/lib/python2.7/dist-packages"
    ],
    "python.analysis.extraPaths": [
        "/home/robot/1-temp_make/devel/lib/python2.7/dist-packages",
        "/opt/ros/melodic/lib/python2.7/dist-packages"
    ]
}

主要添加

bash 复制代码
"C_Cpp.intelliSenseEngine":"default"

就可以解决

最终的配置:

bash 复制代码
{
    "python.autoComplete.extraPaths": [
        "/home/robot/1-temp_make/devel/lib/python2.7/dist-packages",
        "/opt/ros/melodic/lib/python2.7/dist-packages"
    ],
    "python.analysis.extraPaths": [
        "/home/robot/1-temp_make/devel/lib/python2.7/dist-packages",
        "/opt/ros/melodic/lib/python2.7/dist-packages"
    ],
    "C_Cpp.intelliSenseEngine":"default"
}

"C_Cpp.intelliSenseEngine":"default"的值有三个,我们根据提示选择 default,就可以出现转到定义。

相关推荐
徐小夕@趣谈前端21 小时前
Web文档的“Office时刻“:jitword共建版2.0发布!让浏览器变成本地生产力
前端·数据结构·vue.js·算法·开源·编辑器·es6
电饭叔1 天前
Jupyter学习中的问题--FileNotFoundError
ide·学习·jupyter
noBt1 天前
Windows IDEA 卡顿严重
java·ide·intellij-idea
小疙瘩1 天前
去掉 IDEA 中 mybatis配置文件的局部背景颜色(图解)
java·ide·intellij-idea
zhanglianzhao1 天前
Win 11 WSL 配置Claude code 并在VsCode中使用
ide·vscode·编辑器·claude·cladue code
Keying,,,,1 天前
VScode中终端闪退问题
ide·vscode·编辑器
热爱生活的五柒1 天前
如何在vscode中使用Claude code以及插件中配置setting.json无效的解决方法
ide·vscode·编辑器
ONLYOFFICE1 天前
ONLYOFFICE 自动化工具:宏和 AI 函数如何选择?
运维·自动化·编辑器·onlyoffice
dzj20211 天前
Visual Studio2022中好用的AI编码工具介绍——Windsurf(Codeium)
ide·ai·visual studio·code
浩瀚之水_csdn1 天前
vscode中运行html语言
ide·vscode·html