C++ Setup in VS Code with g++ and gdb on Windows 10

preview_player
Показать описание
This video explains how to setup Visual Studio Code for building and debugging C++ programs on Windows 10. g++ and gdb from MinGW-w64 are used for that purpose.

Initially, the bin folder from MinGW-w64 is added to the PATH environment variable. IntelliSense is then configured in the C/C++ extension. At the end, the build task and the debugging configuration is made.

Prerequisites:
- Install VS Code and the C/C++ extension (for debugging and IntelliSense).
- Install Mingw-w64 (for g++ and gdb).

Code:

Chapters:
00:00 Introduction
00:10 Prerequisites: Necessary Installations
01:15 Prerequisites: Updating the PATH Environment Variable
03:03 Configuration: Intellisense
04:17 Creating a Simple C++ Program
05:06 Creating and Running a Build Task
07:00 Running the C++ Program
07:21 Configuration: Debugging
08:30 Debugging the C++ Program
09:18 Outro

LIKE | COMMENT | SHARE | SUBSCRIBE
Рекомендации по теме
Комментарии
Автор

As simple as you made it… this is one of the hardest things to find! Great video!!!

aniketraj
Автор

Deserves more subs, I have no idea how many times I've messed up a simple install, this video made it so clear!

zelo_s
Автор

Very simple and easy to follow instructions to get your first C++ program running in VS Code. Searched so many videos, this is all I needed to begin with. Thank you.

manjusoham
Автор

I can't thank you enough! Explained perfectly, everything works... Keep going man!

chaitragurjar
Автор

Finally a tutorial that seems like it was made on Earth

tinynick
Автор

Best video I've seen explaining how to do this!

thomasfinch
Автор

the hero we need, but don't deseve.🥺

zecosta
Автор

"label": "Build",
"type": "shell",
"command": "g++",
"args": [
"-o",
"main",
"-g",
"main.cpp"
],
"group":{
"kind": "build",
"isDefault": true

newsupdates
Автор

You have the same tone as Macintalk but with an accent twist. Beautiful.

wazreacts
Автор

you are amazing thank you a lot no one else showed anything like this.

UnknownUser-bzpp
Автор

#2:18 i cannot find g++ exe in the bin folder. Please help.

akshitagupta
Автор

THANK YOU SO MUCH! THIS IS ABSOLUTELY INCREDIBLE!!! I have searched far and wide for a solution to this, but your video was the only one that worked for me! THANK YOU THANK YOU THANK

taylorenglish
Автор

This guy deserves more subs dude.

Also, in launch.json
Under section "program"
You can use
To execute file with any name. People try using different names for programs other than main.cpp/main.exe. the code is for those who want to have custom named files 😅

rajplays
Автор

oh my god thank you so so much!! i was practically on the verge of giving up trying to set up C++ in VS code. My first language was python so i wasnt familiar with all the 'main' file formalities (idk what to call it) and 'json' files that need to be created. thanks for helping this big noob (me) through!

kimayawanjari
Автор

Thank you very much! I've spent so much time to understand how to configurate the debugger on windows. Your video helped me a lot. Quickly, easily and effectively. Put like

math
Автор

Very valuable explanation! Simple and precise!

sebicarjan
Автор

very smooth explanation, no errors thank you so much

cryptobaduymus
Автор

Thanks very much. Your video is more helpful than another video which claimed to show how to do C++. I managed to do it all, eventually, which astonishes me!

ionlyemergeafterdark
Автор

thank you so much ! this video really helped me to install vs code perfectly with no errors.

shashwatsrivastava
Автор

This video is stop me from quitting coding!
Life saver video!
Thank you so much 💝

ankitapol