赞
踩
问题引出:
近来运用VScode的时刻 F12快捷键时好时坏,Ctrl+鼠标左键有时刻也不好使,老是跳转不过去。按住Ctrl键,鼠标悬停在某个函数名上方,无提醒,且没法跳转:
解决方法:
1、翻开VsCode: 文件 -> 将事情区另存为,将文件夹添加到事情区。
2.按快捷键Ctrl+P,以后点击Edit configurations,翻开c_cpp_properties.json文件,搜检 “includePath” 字段。
如:
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"C:/Keil_v5/ARM/ARMCC/include"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerPath": "C:\\\\Program Files\\\\LLVM\\\\bin\\\\clang.exe",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "clang-x64"
}
],
"version": 4
}
我这边假如添加了别的途径 “C:/Keil_v5/ARM/ARMCC/include” 就会形成没法跳转,末了只能改成:
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerPath": "C:\\\\Program Files\\\\LLVM\\\\bin\\\\clang.exe",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "clang-x64"
}
],
"version": 4
}
Ctrl+左键,F12都圆满跳转,解决问题。
相干文章教程引荐:vscode教程
以上就是vscode中CTRL+鼠标左键函数不跳转的细致内容,更多请关注ki4网别的相干文章!
为木唯品 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:vscode中CTRL+鼠标左键函数不跳转_编程开发工具
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。