Visual Studio Code and Mingw64 Setup on Windows 10 - VGuerreiro/JourneyToCpp GitHub Wiki
Visual Studio Code and Mingw64 Setup on Windows 10
. Make sure to read the official VSCode Docs .
-
Download & install VSCode
-
Install VSCode C++ plugin by Microsoft
-
Download & Install mingw-w64
-
Select the latest version and install with default settings
-
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
-
Add
C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\binto User Environment Variable under Path -
Restart Windows
-
Run
cmd > g++ -vto check installation -
Open VSCode
-
CTRL+SHIFT+P
-
Search and Run the command 'C/Cpp: Edit configurations' Download Here
-
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
-
Include '"C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\gcc.exe"' under the "compilePath" command
-
Save file
-
CTRL+SHIFT+P
-
Search and 'Run Tasks: Configure Task' select 'Create tasks.json file from templates' select 'Others'
-
Copy the contents of tasks.json - Download Here - to this VSCode Workspace tasks file
-
Open the Debug View
-
Click the Configure Button
-
Seletc 'C++ (GDB/LLDB)'
-
Open the resulting launch.json file
-
Copy the contents of launch.json - Download Here - to this VSCode Workspace launch file