vscode配置问题
生活随笔
收集整理的這篇文章主要介紹了
vscode配置问题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
未能分析“f:\Microsoft VS Code\aC.vscode\c_cpp_properties.json”: Unexpected token / in JSON at position
Win+R --> gcc -v -E -x c++ -
修改“c_cpp_properties.json”文件:
配置成功:
“1:c_cpp_properties.json”文件參考代碼:
{"configurations": [{"name": "Linux","includePath": ["F:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++","F:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32","F:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward","F:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include","F:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed","F:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/include"],"defines": [],"compilerPath": "/root/esp8266/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc","cStandard": "c11","cppStandard": "c++17","intelliSenseMode": "gcc-x64","browse": {"path": ["${workspaceFolder}","/root/esp8266_3.2/ESP8266_RTOS_SDK-3.2"],"limitSymbolsToIncludedHeaders": true}}],"version": 4 }2:launch.json:
3:tasks.json:
{"version": "2.0.0","command": "g++","args": ["-g","${file}","-o","${fileBasenameNoExtension}.exe"],"problemMatcher": {"owner": "cpp","fileLocation": ["relative","${workspaceFolder}"],"pattern": {"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$","file": 1,"line": 2,"column": 3,"severity": 4,"message": 5}} }??
參考文章:
https://blog.csdn.net/weixin_40694527/article/details/84251461
https://blog.csdn.net/fdfdsds/article/details/102248876
總結
以上是生活随笔為你收集整理的vscode配置问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android 通过 “隐式意图” 打开
- 下一篇: Android 天气预报【解析XML /