- Download MinGW from https://sourceforge.net/projects/mingw/
- After installing, open the MinGW Installation Manager
- Under Basic Setup, right click
mingw32-gcc-g++and click onMark for Installation - Go to the tab
Installationat the top and click onApply Changesthen apply.
- Find Edit Environment Variables Window.
- Method 1
- Open the start menu and search for
Edit Environment Variables - Under the
Advancedtab, click onEnvironment Variables.
- Open the start menu and search for
- Method 2
- Press
Windows Logo+Pause Break - Under the
Advancedtab, click onEnvironment Variables.
- Press
- Method 3
- Right click
My Computerin the start menu and press onProperties. - In the new window, find the
Advanced System Settingsin the pane at the left. - Under the
Advancedtab, click onEnvironment Variables.
- Right click
- Method 1
- Choose either User Variables or System Variables and find
Path - Click on the entry and press
Edit - Click on
Newin the new window and addC:\MinGW\bin(Depending on where you installed MinGW) - Make sure gcc is properly added to path by running a terminal (cmd) and type in
gcc
- Find Edit Environment Variables Window.
- Method 1
- Press
Windows Logo+Pause Break - Under the
Advancedtab, click onEnvironment Variables.
- Press
- Method 2
- Right click
My Computerin the start menu and press onProperties. - In the new window, find the
Advanced System Settingsin the pane at the left. - Under the
Advancedtab, click onEnvironment Variables.
- Right click
- Method 1
- Choose either User Variables or System Variables and find
Path - Click on the entry and press
Edit - Add
;C:\MinGW\binat the end. Make sure that there isn't two semicolons and that you put a semicolon if there isn't already. - Make sure gcc is properly added to path by running a terminal (cmd) and type in
gcc
-
Download Git from https://git-scm.com/
-
Install and make sure to check
Install on PATH- If Git is already installed but isn't on PATH, then follow the instructions on adding MinGW to path, but instead add
%USERPROFILE\AppData\Local\GitHubDesktop\binorC:\Users\%username%\AppData\Local\GitHubDesktop\bin
- If Git is already installed but isn't on PATH, then follow the instructions on adding MinGW to path, but instead add
-
Make sure Git is properly added to path by running a terminal (cmd) and type in
git
- Download VSCode from https://code.visualstudio.com/
- Install the following extensions:
- C/C++:
ms-vscode.cpptools - C/C++ Compile Run:
danielpinto8zz6.c-cpp-compile-run
- C/C++:
- Open your file in VSCode, either by dropping it in the window or opening it in the
Filetab above. (Opening a folder is best.)- Make sure your file does not have a space in it, or it will fail to compile.
- Press
F6in order to Compile and Run or Open the Command Palette and typeCompile and Run. - If your code ran, then congratulations. If not, make sure the steps you followed are correct and make sure there aren't any errors. (Can be opened by doing
Ctrl+Shift+Mor pressing the icon with ❌ at the bottom.)
- Code Spell Checker:
streetsidesoftware.code-spell-checker - Dark+ Material:
vangware.dark-plus-material- Open Command Palette
Ctrl+Shift+Pand type inColor Themeand then find Dark+ Material.
- Open Command Palette
- Gremlins:
nhoizey.gremlins - Snake Trail:
richie5um2.snake-trail
- Open settings
Ctrl+, - Edit your
settings.jsonfile to the following items
{
"window.titleBarStyle": "custom",
"files.autoSave": "afterDelay",
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"editor.cursorBlinking": "phase",
"editor.cursorStyle": "block",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.wordWrap": "on",
"editor.smoothScrolling": true,
"editor.fontLigatures": true,
"editor.mouseWheelZoom": true,
"workbench.statusBar.visible": true,
"workbench.activityBar.visible": true,
"cSpell.allowCompoundWords": true,
}



