How to Set up Visual Studio Code for C and C++ Programming [ with MSYS2 ]
HTML-код
- Опубликовано: 25 окт 2024
- 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...
If that didnt work try this : ruclips.net/video/KnPj8Ow3bM8/видео.html
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
life saving comment
@@castyjames9301 Np!
Thanks a lot
Life saver❤❤❤
Thanks a lot man❤
really helpfull video, after following each step one by one my c++ setup is completed in vs code. thankyou for making such informative video
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.❤
This is something I have tried several times but I still can't do it
I am having an error when I run it . The error is "g++: error: Downloads\programcodes\programTEST: No such file or directory
"
Glad it worked for you guys, mine is not...
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.
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
Same here did you get any help
@@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
try to remove space from "a .c" to make it "a.c"
Ya that was the exact probleem i faced thanks sir for making me overcome over it
Is it possible to upgrade to updated C and C++ versions of MSYS?
just wanted to clarify, why is microsoft c/c++ has only c++? what extension is for c only?
newbie here
c and c++ are the same, c++ just uses classes and objects where c does not
Because c is a subset of c++ so we will be able to access features of both languages with c++
because c++ is c with oop
Worked to a tee. Thank You
The "Edit Environment Variable" window aren't the same as that one when I clicked on "Path."
Same here
are these safe to download and use?
does it work for those who sve their code in a usb flash drive ?
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!
my vs code takes 6.2 second to print hello world
bro after inputing y command it is showing same thing ....i.e Enter a selection (default=all): what to do ?
Same
Press enter
can i install this on another drive of my laptop?
can't belive I wasted my time seeing the last year guide... oh god, thanks
Straight to the point! Ty so much
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.
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
You are a life saver! Thank you 🎉
i now get the error
"the prelaunch task 'C/C++:gcc.exe build active file' terminated with exit code -1."
what to do ?
Yo same. Idfk what to do tho
Same problem here...
Select use g++, not gcc, when you're debugging
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.
The link isn't downloading for me
Thanks its working ❤
anyone know how to fix Launch:program "Path" Does not exist error?
@@zenovcozru6153 you are probably running a file with wrong extention
bash command not found
TYSM!🎉🎉🎉🎉🎉🎉🎉🎉🎉
no. 6 step it's not working when I put y..it's invalid 😥i can't proceed to the next step😥😥
enter and y
But off topic but, anyone knows the VS Code theme he's using? 3:34
Thnx a lot.......it was so annoying ❤
Thanks ❤
thanks for the help
can i delete msys2 afterwards??
yes
Awsome thank you so much
i do not understand why they made it that complicated
thanks
Error: failed retrieving file
Did it work? For you? I have the same problem
Thank you soooo much❤
great video thanks
thank you man.
didn't work for me :
Thank youuu
the terminal looks ugly but at least its finally working i was bout to kms
best
thanks a lot
it keeps showing a fucking annoying ass G++ error its annoying as hell.
hey same me too
did you find out any solution for this?
i gave up and went to visual studio instead of code
Yeeeeea, that didnt work
Fake
thankyou!