在windows下的vscode中json文件寫路徑時(shí),可以使用/,也可以使用\\,例如:
"miDebuggerPath":"D:/mingw64/bin/gdb.exe"
也可以寫成:
"miDebuggerPath":"D:\\mingw64\\bin\\gdb.exe"
還有,在寫c時(shí),顯示cannot open source stdio.h等類似問題時(shí),就要修改c_cpp_properties.json這個(gè)文件,點(diǎn)擊有問題的那一行,然后會(huì)出現(xiàn)一個(gè)小燈泡,然后點(diǎn)擊小燈泡,選擇edit?c_cpp_properties.json,就可以更改c_cpp_properties.json這個(gè)文件了。
修改如圖所示的位置
