Tính năng
-
Chạy & debug code chỉ với 1 phím:
- F6: chạy (command: extension.buildCode)
- F5: debug (command: extension.debugCode)
- Auto complete, lint, build, debug cho C/C++ không cần cấu hình
- Hỗ trợ GCC/Mingw, GDB, project single-file
- Hiển thị lỗi khi biên dịch
- Auto save, custom compiler flags
- Hỗ trợ fold #include khi mở file
Yêu cầu: Windows 10 >= 1709, chỉ cần cài extension này là
auto-complete, lint, debug đều chạy mượt.
Debug
Gợi ý/snippets
Hướng dẫn cài MinGW
- Mở PowerShell (Run as Administrator)
-
Cài Chocolatey:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) -
Cài MinGW:
choco install mingw -y
-
Kiểm tra:
gcc --version g++ --version gdb --version
Nếu hiện version là ok.