How to Set up Visual Studio Code for C and C++ Programming [ with MSYS2 ]

  Рет қаралды 88,419

Code Bear

Code Bear

Күн бұрын

In this video ill show you how to setup visual studio code for c/c++ programming on windows , we will first download and Install C/C++ toolset mingw using the msys2 which is a c/c++ compiler and then we will download and install code runner extention in vscode.
Updated version : • How to Set up Visual S...

Пікірлер: 80
@thecodebear
@thecodebear 4 ай бұрын
If that didnt work try this : kzbin.info/www/bejne/gZ-zm2uFrJiVg5o
@Name-bb8wo
@Name-bb8wo 10 ай бұрын
guys anyone had a problem with entering y. just click enter before it to accept and then you can write y and it will download everything
@castyjames9301
@castyjames9301 9 ай бұрын
life saving comment
@Name-bb8wo
@Name-bb8wo 9 ай бұрын
@@castyjames9301 Np!
@hanyoungkim1014
@hanyoungkim1014 9 ай бұрын
Thanks a lot
@invadorop
@invadorop 7 ай бұрын
Life saver❤❤❤
@deepaks4432
@deepaks4432 4 ай бұрын
Thanks a lot man❤
@bepawsitiv
@bepawsitiv 9 ай бұрын
really helpfull video, after following each step one by one my c++ setup is completed in vs code. thankyou for making such informative video
@keanmaulana4884
@keanmaulana4884 3 ай бұрын
Hello mister, I am very proud of your tutor. I am a student studying informatics and I was given an assignment to code C++. It's been a week and I've been getting errors.❤
@vnzlb
@vnzlb 8 ай бұрын
Glad it worked for you guys, mine is not...
@AHSANENGINEER-y7u
@AHSANENGINEER-y7u Ай бұрын
thanku so much sir is video is slove my problem i watch multiple videos to slove my problem but this one slove is amazing u r great person sir
@ismaeltezoh5824
@ismaeltezoh5824 10 ай бұрын
This is something I have tried several times but I still can't do it
@alexanderliammontefalco4789
@alexanderliammontefalco4789 6 ай бұрын
I am having an error when I run it . The error is "g++: error: Downloads\programcodes\programTEST: No such file or directory "
@alexandreramalho9637
@alexandreramalho9637 8 ай бұрын
can't belive I wasted my time seeing the last year guide... oh god, thanks
@anllerys
@anllerys 8 ай бұрын
I follow everystep one by one and whem finished the helloWorld last 5 to 10 seconds to run, any advice. I try in visual estudio 2022 and happen the same.
@Sidmohiteee2008
@Sidmohiteee2008 5 ай бұрын
Ya that was the exact probleem i faced thanks sir for making me overcome over it
@amirnafissi7393
@amirnafissi7393 Ай бұрын
If it doesn't work once you ran vs code, make sure you added the correct path to your system environment variables. The default should be C:\msys64\ucrt64\bin
@souljarohill8795
@souljarohill8795 Ай бұрын
Worked to a tee. Thank You
@lelouch6872
@lelouch6872 2 ай бұрын
Thnx a lot.......it was so annoying ❤
@luyasjohnrold7388
@luyasjohnrold7388 3 ай бұрын
Thanks its working ❤
@AminAlan
@AminAlan 4 ай бұрын
Is it possible to upgrade to updated C and C++ versions of MSYS?
@PedroFalcao-lp9lk
@PedroFalcao-lp9lk 7 ай бұрын
Straight to the point! Ty so much
@lapointe3344
@lapointe3344 2 ай бұрын
thanks for the help
@meriemkh4382
@meriemkh4382 4 ай бұрын
Awsome thank you so much
@meliodassama988
@meliodassama988 8 ай бұрын
Really need help, my visual code says "cannot build and debug because the active file is not a c or c++ source" I made a .c and a .cpp file, both don't work
@jagratitripathi1861
@jagratitripathi1861 7 ай бұрын
Same here did you get any help
@meliodassama988
@meliodassama988 7 ай бұрын
@@jagratitripathi1861 i forgot how but i download some extensions from microsoft for running, compiling, and debugging, as well as some color coded lines lol. I managed to use it when i save the file and THEN build it
@agamer2943
@agamer2943 6 ай бұрын
try to remove space from "a .c" to make it "a.c"
@selviranin7000
@selviranin7000 7 ай бұрын
You are a life saver! Thank you 🎉
@osamagx78
@osamagx78 9 ай бұрын
does it work for those who sve their code in a usb flash drive ?
@StormCloudStudios189
@StormCloudStudios189 9 ай бұрын
The "Edit Environment Variable" window aren't the same as that one when I clicked on "Path."
@mariatanzin3513
@mariatanzin3513 5 ай бұрын
Same here
@gssaan5871
@gssaan5871 Ай бұрын
Thanks ❤
@amruthp407
@amruthp407 5 ай бұрын
Thank you soooo much❤
@andrewsoufia2279
@andrewsoufia2279 2 ай бұрын
are these safe to download and use?
@lancetumanan
@lancetumanan 2 ай бұрын
can i install this on another drive of my laptop?
@sadik_tutorials1
@sadik_tutorials1 Ай бұрын
TYSM!🎉🎉🎉🎉🎉🎉🎉🎉🎉
@jacktapping
@jacktapping 6 ай бұрын
great video thanks
@molo-w9p
@molo-w9p Ай бұрын
thanks
@varun.T
@varun.T 4 ай бұрын
thank you man.
@amazing_reels01
@amazing_reels01 11 ай бұрын
bro after inputing y command it is showing same thing ....i.e Enter a selection (default=all): what to do ?
@ravishankarkumar6753
@ravishankarkumar6753 11 ай бұрын
Same
@aswinxi-b8756
@aswinxi-b8756 11 ай бұрын
Press enter
@grimhole1123
@grimhole1123 2 ай бұрын
bash command not found
@davideschreiber2821
@davideschreiber2821 7 ай бұрын
Completed everything as described, but get error message when I try to run a program. So frustrating. I think I'll abandon C with curses and stick with Python.
@meliodassama988
@meliodassama988 8 ай бұрын
just wanted to clarify, why is microsoft c/c++ has only c++? what extension is for c only? newbie here
@drainmysack
@drainmysack 7 ай бұрын
c and c++ are the same, c++ just uses classes and objects where c does not
@jagratitripathi1861
@jagratitripathi1861 7 ай бұрын
Because c is a subset of c++ so we will be able to access features of both languages with c++
@abc-qk3ml
@abc-qk3ml 3 ай бұрын
because c++ is c with oop
@mateenqureshi1417
@mateenqureshi1417 5 ай бұрын
thankyou!
@xlys-
@xlys- Ай бұрын
the terminal looks ugly but at least its finally working i was bout to kms
@MainHook
@MainHook 10 ай бұрын
Hi! I'm sorry for using this space asking you this, but my Hello World took 10+ seconds to compile and run. Awkward, right? Already reinstall the MSYS2, use the g++ instead of the gcc on c_cpp_properties.json but nothing worked. Maybe if I could compile and run the same Hello World program on another IDE, to see if this is a VScode problem, but idk how to do it. Can you help me, pls? Thank you!
@bepawsitiv
@bepawsitiv 9 ай бұрын
my vs code takes 6.2 second to print hello world
@zenovcozru6153
@zenovcozru6153 4 ай бұрын
anyone know how to fix Launch:program "Path" Does not exist error?
@thecodebear
@thecodebear 4 ай бұрын
@@zenovcozru6153 you are probably running a file with wrong extention
@freddyboiytg2103
@freddyboiytg2103 5 ай бұрын
The link isn't downloading for me
@riderofriders7342
@riderofriders7342 6 ай бұрын
But off topic but, anyone knows the VS Code theme he's using? 3:34
@ishankhemrajani16
@ishankhemrajani16 10 ай бұрын
thanks a lot
@stevengaming55
@stevengaming55 5 ай бұрын
i now get the error "the prelaunch task 'C/C++:gcc.exe build active file' terminated with exit code -1." what to do ?
@SpaceVultureV
@SpaceVultureV 5 ай бұрын
Yo same. Idfk what to do tho
@ryoasuka5528
@ryoasuka5528 5 ай бұрын
Same problem here...
@komaedanagito841
@komaedanagito841 4 ай бұрын
Select use g++, not gcc, when you're debugging
@ayushpawar5657
@ayushpawar5657 2 ай бұрын
I assume you have selected something else while selecting for run and debug, search for tasks.json file, then delete everything inside outermost parenthesis, now save the file, this deletes all the saved settings, Now you can again click on run button in your active window, when asked for a selection select C/C++: g++.exe option. Now it will work as expected.
@a_tinder
@a_tinder 4 ай бұрын
best
@cloudbel
@cloudbel 3 ай бұрын
i do not understand why they made it that complicated
@mrzaroq
@mrzaroq 10 ай бұрын
Error: failed retrieving file
@I.Saylor
@I.Saylor 4 ай бұрын
Did it work? For you? I have the same problem
@coriesalen6966
@coriesalen6966 9 ай бұрын
no. 6 step it's not working when I put y..it's invalid 😥i can't proceed to the next step😥😥
@TheEverythingVibe
@TheEverythingVibe 9 ай бұрын
enter and y
@homepunks9040
@homepunks9040 8 ай бұрын
can i delete msys2 afterwards??
@dhanvinbharat3164
@dhanvinbharat3164 8 ай бұрын
yes
@xoxo.k4te
@xoxo.k4te 5 ай бұрын
didn't work for me :
@sprtywashere2077
@sprtywashere2077 9 ай бұрын
it keeps showing a fucking annoying ass G++ error its annoying as hell.
@kurakura05
@kurakura05 9 ай бұрын
hey same me too did you find out any solution for this?
@akiira9
@akiira9 8 ай бұрын
i gave up and went to visual studio instead of code
@SpaceVultureV
@SpaceVultureV 5 ай бұрын
Yeeeeea, that didnt work
@Jenniekim-bp9hw
@Jenniekim-bp9hw 5 ай бұрын
Fake
@PatarapolWongpanich
@PatarapolWongpanich 4 ай бұрын
Thank youuu
C++ in VS Code: Building your Code with CMake
9:37
Visual Studio Code
Рет қаралды 44 М.
How to Install Visual Studio Code on Mac | Install VSCode on macOS (2024)
8:44
ProgrammingKnowledge
Рет қаралды 193 М.
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 94 МЛН
Из какого города смотришь? 😃
00:34
МЯТНАЯ ФАНТА
Рет қаралды 2,5 МЛН
How to Set up Visual Studio Code for C and C++ Programming
7:22
LearningLad
Рет қаралды 3,9 МЛН
Installing MinGW to build C++ Code on Windows
3:08
Visual Studio Code
Рет қаралды 390 М.
How to set up C++ in Visual Studio Code
6:53
Kenny Yip Coding
Рет қаралды 980 М.
How to Run C/C++ Program in Visual Studio Code [2024] | Run C & C++ in VS Code
6:14
How to Set up Visual Studio Code for C and C++ Programming
7:10
LearningLad
Рет қаралды 13 М.
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 94 МЛН