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

preview_player
Показать описание
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.

Рекомендации по теме
Комментарии
Автор

really helpfull video, after following each step one by one my c++ setup is completed in vs code. thankyou for making such informative video

bepawsitiv
Автор

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

Name-bbwo
Автор

I am having an error when I run it . The error is "g++: error: No such file or directory
"

alexanderliammontefalco
Автор

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.

anllerys
Автор

This is something I have tried several times but I still can't do it

ismaeltezoh
Автор

Is it possible to upgrade to updated C and C++ versions of MSYS?

AminAlan
Автор

does it work for those who sve their code in a usb flash drive ?

osamagx
Автор

Glad it worked for you guys, mine is not...

vnzlb
Автор

Ya that was the exact probleem i faced thanks sir for making me overcome over it

Sidmohiteee
Автор

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!

MainHook
Автор

How do I change the exe location folder ?

mbaceo
Автор

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

meliodassama
Автор

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.

davideschreiber
Автор

bro after inputing y command it is showing same thing ....i.e Enter a selection (default=all): what to do ?

amazing_reels
Автор

But off topic but, anyone knows the VS Code theme he's using? 3:34

riderofriders
Автор

The "Edit Environment Variable" window aren't the same as that one when I clicked on "Path."

StormCloudStudios
Автор

i now get the error

"the prelaunch task 'C/C++:gcc.exe build active file' terminated with exit code -1."

what to do ?

stevengaming
Автор

just wanted to clarify, why is microsoft c/c++ has only c++? what extension is for c only?
newbie here

meliodassama
Автор

can't belive I wasted my time seeing the last year guide... oh god, thanks

alexandreramalho
Автор

anyone know how to fix Launch:program "Path" Does not exist error?

zenovcozru