Skip to content

Visual Studio Code and Mingw64 Setup on Windows 10

Vítor Guerreiro edited this page Mar 16, 2019 · 8 revisions

Visual Studio Code and Mingw64 Setup on Windows 10

. Make sure to read the official VSCode Docs .

  1. Download & install VSCode

  2. Install VSCode C++ plugin by Microsoft

  3. Download & Install mingw-w64

  4. Select the latest version and install with default settings

  5. Install to C:\Mingw64 6.1. Go to installation Dir and run the Batch command OR 6.2. Search Windows start menu for 'Environment Variables' settings

  6. Add C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin to User Environment Variable under Path

  7. Restart Windows

  8. Run cmd > g++ -v to check installation

  9. Open VSCode

  10. CTRL+SHIFT+P

  11. Search and Run the command 'C/Cpp: Edit configurations' [download here]

  12. Include '"C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\lib\gcc\x86_64-w64-mingw32\8.1.0\include\c++"' under the "includePath" command

  13. Include '"C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe"' under the "compilePath" command

  14. Save file

  15. CTRL+SHIFT+P

  16. Search and 'Run Tasks: Configure Task' select 'Create tasks.json file from templates' select 'Others'

  17. Copy the contents of tasks.json (OneDrive) to this VSCode Workspace tasks file

  18. Open the Debug View

  19. Click the Configure Button

  20. Seletc 'C++ (GDB/LLDB)'

  21. Open the resulting launch.json file

  22. Copy the contents of launch.json (OndeDrive) to this VSCode Workspace launch file


Clone this wiki locally