CTRL+left mouse button function in vscode does not jump

王林
Release: 2019-12-12 13:17:23
Original
30844 people have browsed it

CTRL+left mouse button function in vscode does not jump

问题引出:

最近使用VScode的时候 F12快捷键时好时坏,Ctrl+鼠标左键有时候也不好使,总是跳转不过去。按住Ctrl键,鼠标悬停在某个函数名上方,无提示,且无法跳转:

CTRL+left mouse button function in vscode does not jump

解决方法:

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 }
Copy after login

我这边如果添加了其它路径 "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 }
Copy after login

Ctrl+左键,F12都完美跳转,解决问题。

相关文章教程推荐:vscode教程

The above is the detailed content of CTRL+left mouse button function in vscode does not jump. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!