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