linux 下 vscode 的使用


vscode 的使用

1、VScode:添加头文件路径

F1Ctrl+Shift+p 在弹出的备选选项中选择 C/C++:Edit Configuration(JSON),自动打开c_cpp_properties.json配置文件

在includePath中添加头文件路径

"includePath": [
                "${workspaceFolder}/**",
                "~/ros2_install/ros2-linux/**"

 

2、样式修改

打开setting.json,复制下面:

{
    "editor.fontFamily": "Consolas, 'Courier New', monospace",
    "editor.codeLensFontSize": 18,
    "editor.fontSize": 18,
    "workbench.colorTheme": "Visual Studio Light - C++",
    "editor.defaultFormatter": "ms-vscode.cpptools",
    "editor.definitionLinkOpensInPeek": true,
    "editor.fontLigatures": false,
    "cmake.configureOnOpen": true,
    "editor.codeActionsOnSave": null
}

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM