vscode: cmake, cmake tools, c++/c, code ruuner
windows
- 要安裝mingw和手動(dòng)添加路徑到系統(tǒng)路徑窿锉;
-
安裝cmake她倘, 選擇
image.png - 要將mingw32_make.exe改為make才能編譯通過
notes:1,2,3弄完之后最好重啟一下vscode -
launch.json文件瑞眼,運(yùn)行run and debug創(chuàng)建luanch.json文件
launch.json.png
總結(jié):一般用cmake編譯单山,然后用lauch.json文件run/debug代碼.