Setup C/C++ environment for VScode (on Windows)
安裝 mingw
- 下載 mingw-w64
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- 如果是64位元電腦
- Architecture: x86_64
- Exception: seh
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- 修改安裝路徑,切記路徑中不能有空格
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- 等待安裝完畢。
- 新增編譯器環境變數
- 右鍵"本機" -> "內容"
- 開啟"進階系統設定"
- 開啟"環境變數"
- 雙擊"系統變數 - Path"
- 新增環境變數,"{mingw安裝路徑}\mingw64\bin"
- 按"確定"
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
安裝 VScode
- 下載 VScode
- 到 Extension 設定頁面
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- Install
C/C++
and C++ Intellisense
Extensions.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
(可選)Install Code Runner
方便執行code,但沒有debugger功能
Setup
- Install
Code Runner
Extension.
File
-> Preferences
-> Settings
- Search for
Code Runner
- Set following options
How to use
- Run shortcut:
ctrl + alt + n
- Run button: running icon on up-right
設定 Debugger