| 工具 | 平台 | 特點 | 下載來源 |
|---|---|---|---|
| VS Code + C/C++ Extension + MinGW-w64 | Win/Linux/macOS | 輕量、現代、擴展豐富、免費開源 | code.visualstudio.com + mingw-w64.org |
| Code::Blocks (含 MinGW 安裝包) | Win/Linux | 傳統IDE、專案管理、除錯、一鍵安裝 | codeblocks.org |
| Dev-C++ (Embarcadero 維護版) | Windows | 經典教學、簡單、內建GCC | sourceforge.net/projects/orwelldevcpp |
| Visual Studio Community 2022 | Windows | 專業級、IntelliSense、強大除錯、Git | visualstudio.microsoft.com |
| CLion (JetBrains, 學生免費) | Win/Linux/macOS | 智能分析、重構、CMake、測試 | jetbrains.com/clion |
// test.c
#include
int main() {
printf("Hello, Modern C!\n");
return 0;
}
編譯運行:gcc test.c -o test && ./test (或 test.exe)
tasks.json 配置編譯參數 (-Wall -Wextra -std=c11 -g)cppcheck、clang-tidyclang-format 統一代碼風格Unity、CMock、Check