赞
踩
右键点击该函数出现的结果只能是这样的:
通过修改 settings.json 文件,以解决问题:
这是原来有问题的配置:
- {
- "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"
就可以解决
最终的配置:
- {
- "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,就可以出现转到定义。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。