Thanks a lot for the helpful guide! I know the steps are explained on the website but having someone to walk you through the process is a lot less stressful!
i tried getting a compiler to work with vs code last year and couldn't figure it out and gave up. this method was super easy, straight to the point, and ive got a working compiler now thank you.
Thank you so much. I started my first computer science class and was lost in the sauce. I didn’t know anything about what to install and how to install it. That is until I saw this video. Thanks to you I was able to print my first Hello World ! 😊
Hey everyone if g++ or the other compilers aren't showing up at 06:08 time in the video or when you try to run the code (which is what happened to me every single time I tried this) this sounds so dumb but just make sure you did all the previous steps correct and RESTART YOUR COMPUTER. It worked for me after this. Thanks Kenny Yip Coding for the tutorial and happy coding y'all :)
You dude is a hero! Let me add that the first time you run your code after you do this, there'll be a bunch of errors. Depending on how fast your computer is, it will take time before all the scripts load up and be read in your computer's system. Mine had a bunch of error at first when I ran my codes and I just restarted my laptop and it eventually worked.
The only video I could find that actually explained this clearly. Subscribed just off the quality of this video alone. As soon as I have hello worlded I'll be back to see what else you've got.
Thank you, I've been using online gdb for the longest, but just having the choice of vs code makes me happy. Make sure to restart the computer afterwards as well since it wasn't working until after.
3:40 - For those who get the error "gcc is not recognized as an internal or external command", close the terminal and open the command prompt again but run as administrator. EDIT: It might not work instantly, you might as well reboot the system first.
Thank you soooo soo much! I was trying to do some C++ learning, and Visual stdios would not work for me with C++! Anyone looking to fix your C++ problem on VS, defo use this youtube video!
This never works for me. It's like the world doesn't want me using vs code for c++, I followed this tutorial step by step, watched the video three times, and it still failed.
BRO, THANK YOU SO MUCH! YOU ARE AWESOME! I was suffering the whole day, and can't understand why VSCode is not working i swear i felt like I'd been all over the internet to find something about my problem BUT you're video help me. Thank you again pal!!!
Such a helpful tutorial 👏 !!! I had initially installed an up-to-date msvc for my vscode as instructed but for whatever reason the compiler version would always default to 199707 (c++98) despite all the online tutorials I followed elsewhere and efforts I made trying to fix it. However, completely switching to minGW was amazing as everything got fixed and now my c++23 code runs flawlessly!
alright folkes , everyhing in this video is awesome, just at the moment of running the code don't just blindly click on the first one, click on the one in which there is g++ and not gcc, took an hour+ of my time, but overall an awesome video. (gcc is for c while g++ is for c++ inputs and outputs)
Thank you man, I couldn't figure out the mingw and msys installation for the life of me and was using an online compiler for my code this whole. I basically had to force myself to make vscode work after my PC crashed and I lost all the code in an almost completed program.
I successfully downloaded this after a long time fixing erros, thank you very much for this useful video. If someone strugles with VS, I will highly recommand for them this.
First it did not work, but I figured out it was just because for some reason the user variable thing didn't happen, so I did it again and it works!! tysm!
For some people whom this didnt work for, try this. In your workspace folder, navigate to .vscode, and in there, will be a .json file. In that file, try replacing the gcc.exe to g++.exe in both the lines named label and command. That worked for me.
for people who had problem with gdb but gcc and g++ worked well: open MSYS2 and run command: "pacman -S mingw-w64-x86_64-gdn" (wait to install remain files for gdb) then again opened enviromental variable and paths as it is shown it video 2:52 now he added only C:\msys64\ucrt64\bin in video but you should add C:\msys64\mingw64\bin as well at the same place now try to run gdb --version and it should work.
Thanks a lot for the helpful guide! I know the steps are explained on the website but having someone to walk you through the process is a lot less stressful!
i tried getting a compiler to work with vs code last year and couldn't figure it out and gave up. this method was super easy, straight to the point, and ive got a working compiler now thank you.
brother, my compiler is still not working properly could you please help me
@@shuaibakhtar5333 Uninstall everything and go through harry's guide
Thank you so much. I started my first computer science class and was lost in the sauce. I didn’t know anything about what to install and how to install it. That is until I saw this video. Thanks to you I was able to print my first Hello World ! 😊
Hey everyone if g++ or the other compilers aren't showing up at 06:08 time in the video or when you try to run the code (which is what happened to me every single time I tried this) this sounds so dumb but just make sure you did all the previous steps correct and RESTART YOUR COMPUTER. It worked for me after this. Thanks Kenny Yip Coding for the tutorial and happy coding y'all :)
my problem right here, life saver
ive been trying to fix this problem all day when all i had to do was restart my computer, thank you
your a life saver, its 5:35am and im so tired of trying to get this thing to work
You actually only need to close all VSCode windows so that the Path changes take effect.
Is there an error like this
The preLaunchTask 'C/C++:gcc.exe build active file' terminated with exit code -1 ?
You dude is a hero! Let me add that the first time you run your code after you do this, there'll be a bunch of errors. Depending on how fast your computer is, it will take time before all the scripts load up and be read in your computer's system. Mine had a bunch of error at first when I ran my codes and I just restarted my laptop and it eventually worked.
The only tutorial that actually worked for me! Thank you!!
The other ones 😞. They are really useless
@@thabomaleke874 Yea
The only video I could find that actually explained this clearly. Subscribed just off the quality of this video alone. As soon as I have hello worlded I'll be back to see what else you've got.
same here! all possibilities ! really well explained, well done man!!!
I've been looking for a video like this. I always struggle to compile but now, it's not a problem. Thank you!
As someone who is a complete beginner, THIS IS THE MOST USEFUL VIDEO I HAVE EVER COME ACROSS, THE ONLY VIDEO THAT HELPED. Thankyou so much honestly. 🔥
Thank you, I've been using online gdb for the longest, but just having the choice of vs code makes me happy. Make sure to restart the computer afterwards as well since it wasn't working until after.
Thank you. My cmd line test didnt work at 3:57 but it worked in the MYSYS2 cmd line. This solved my issue with not having a compiler.
3:40 - For those who get the error "gcc is not recognized as an internal or external command", close the terminal and open the command prompt again but run as administrator.
EDIT: It might not work instantly, you might as well reboot the system first.
it still doesn't work
it is just not working
the only step where i am having issue is while doing that download in mysys2 as only 7 downloads turned successful out of 63
Instead of pasting it on path of user variable, paste it on path of system variable
thank you it worked after doing as u said@@vinamrajeet
THIS WORKED TYSM
Thank you soooo soo much! I was trying to do some C++ learning, and Visual stdios would not work for me with C++!
Anyone looking to fix your C++ problem on VS, defo use this youtube video!
i can not even how I can thank you I got four hours trying to turn it on and I didn't know really really thank you .🥰🥰🥰💗💗💗
This never works for me. It's like the world doesn't want me using vs code for c++, I followed this tutorial step by step, watched the video three times, and it still failed.
Which step are you failing at?
@@KennyYipCoding last step is just not working something is wrong with the compiler or something i have no clue this is my 3rd vid so far
@@KennyYipCoding same, when i run there's no "C/C++ :g++.exe build and debug active file"
@@KennyYipCoding yeah me too i try that for three times
@@farisraid7588 Try restarting vs studio
BRO, THANK YOU SO MUCH! YOU ARE AWESOME! I was suffering the whole day, and can't understand why VSCode is not working i swear i felt like I'd been all over the internet to find something about my problem BUT you're video help me. Thank you again pal!!!
I love you. I have spend AGES doing this and this finally worked.
Thank you so much for your help in setting up my Visual Studio Code. Your guidance made the process so much easier.
Such a helpful tutorial 👏 !!! I had initially installed an up-to-date msvc for my vscode as instructed but for whatever reason the compiler version would always default to 199707 (c++98) despite all the online tutorials I followed elsewhere and efforts I made trying to fix it. However, completely switching to minGW was amazing as everything got fixed and now my c++23 code runs flawlessly!
i have constantly failed in installing c++ in visual studio but today i managed to thanks to your video
the simpilest and the easiest tutorial of running c++. Thanks alot
alright folkes , everyhing in this video is awesome, just at the moment of running the code don't just blindly click on the first one, click on the one in which there is g++ and not gcc, took an hour+ of my time, but overall an awesome video. (gcc is for c while g++ is for c++ inputs and outputs)
Thank you lol
You saved me after 4 hrs of trying to run my code and facing problems thanks 😂
Thank you man, I couldn't figure out the mingw and msys installation for the life of me and was using an online compiler for my code this whole. I basically had to force myself to make vscode work after my PC crashed and I lost all the code in an almost completed program.
incredibly greatful for such a nice simple put tutorial!!! Very straight to the point! love it, thanks a ton:D
Thank you very much for uploading this to the point tutorial! I could get cpp running in one go :)
just saw your linkedin you're from IISER Pune 👀 (you're smart af)
trying since yest but finally able to run my prog with help of the clear instructions you have provided on this video , Thank You !
Took me the entire day just to set this up because of you, I can now turn to a new page. I THANK YOU, GOOD SIR.
I done installation within few minutes.I've been looking for a video like this.thanks a lot!!
I’ve seen a bunch of videos trying to run VS but without any results thanks to kenny for this amazing video ❤
the best video i have ever watched . you explained this in detail and clearly thank you.
This is so well-made, thank you!!
Subscribed, keep up the good work
love this vid! i tried to code in vscode since 1 month ago but vscode can compile the coede and no it worked! tysm
I have been trying to get this program to run correctly, and after tons of tutorials without success, yours worked perfectly. Thanks a lot!" :)
I successfully downloaded this after a long time fixing erros, thank you very much for this useful video. If someone strugles with VS, I will highly recommand for them this.
Thanks very much. You really helped me a lot.
Very simple and straight-to-the-point video.
Thanks a lot once again.😊
One of the best guides available, it was easy and fast. tysm bro
Worked in my case finally I am using vs code thankyou bro.
thank you bro I installed g++ and couldn't know why it wasn't working you're a life saver ❤❤
finally someone who goes over everything, spent two hours trying to figure this out, thank you!
Thank you so much! A try a lot of videos and always struggeles in running C and C++ code . Regards👏💯
Cristal clear, outstanding!
Straight to the point thanks a ton!
bro this video was awesome! fast and easy been using visual studio but I'm so comfortable with VScode so thanks bro! subbed
After 3 attempts, it worked out. Thanks for sharing
I watched so many tutorials but this one worked thanks 😊😊
THANK YOU SO MUCH I REINSTALLED VS CODE LIKE A MILLION TIMES I RESET MY WHOLE PC AND NOTHING WORKED UNTILL I FOUND THIS 315 GRAPHIC VIDEO TYY
The article helped me put C++ into my VS Code. Thanks!
First it did not work, but I figured out it was just because for some reason the user variable thing didn't happen, so I did it again and it works!! tysm!
Thanks for the video, finally i was able to set up c++ in Visual Studio Code!!!)))
Thank you so much. I've been wanting to learn c++ for a while now but never got the C++ to run 🙏
It was really a helpful video. It shows the exact procedure line by line. Thanks a lot.
Thank you so much for a easy and clean guidance.👍
Thank you so much bro.
Better than all other channels.
I don't understand English very well, but I understand your language better than what is shown in my language. Thank you for your help.
Could you solve this issue? It happened to me as well...
Try selecting g++.exe when running instead of gcc.exe. That worked for me
omgg tysm!!! such a great and comprehencive guide!
Perfectly running after your tutorial thanks.
I think you are a teacher. Life made easy. Thanks.
Thank you,
From Egypt ❤ 🇪🇬
I was so frustrated my code that worked perfectly fine in uni wouldn't work on my pc this is all I needed thank you
Best guide that worked for me, thank you
the best and detailed guide. Thanks!
Fantastic tutorial, was searching through a few videos to get started on c++ and this one was the best
it works thanks men keep up the good work
Thanks, got it at 2 attempts. I got trolled by my pc at download 7 out ot 58 lol just rerun it and worked and smooth sailing at the end.
Appreciate the help.
THANK YOU SO MUCH YOU HELPED ME A LOT!
thanks men i really appreciate u giving such a detailed explanation video
Thanks man this worked out perfectly!
Great video for beginners! Thank you so much!
For some people whom this didnt work for, try this. In your workspace folder, navigate to .vscode, and in there, will be a .json file. In that file, try replacing the gcc.exe to g++.exe in both the lines named label and command. That worked for me.
Thank you for saving me
where do i find this workspace folder?
This works for me, but I have to edit this on every new project I make :( ... Avast antivirus deletes every .exe I create too, that's a pain.
Thank you for commenting this. Ive been trying to figure it out for months
Thank you my friend, helped alot. All the best! 🙏
Thank you so much! Very Helpful!
Thank you Kenny Sir, Really appreciated.
Your tutorial is great, it realy helped me. 😀
Worked perfectly, thank you.
Shukria yar genuine video
Thank you so much for this set up, it worked for me
ohh this actually helpful and first youtube tutorial that i watch and it works😮😮
Helpfull video thank you
🤗
for me instead of adding in Path under USER variables, I added it to Path under SYSTEM variables and it worked.
Thank you a lot. I LOVE YOU!!!!
thanks so much this was a good clean start
Excellent , Got it in a one go
Very well explained. Thank you for this wonderful video :)
for people who had problem with gdb but gcc and g++ worked well:
open MSYS2 and run command: "pacman -S mingw-w64-x86_64-gdn" (wait to install remain files for gdb)
then again opened enviromental variable and paths as it is shown it video 2:52
now he added only C:\msys64\ucrt64\bin in video but you should add C:\msys64\mingw64\bin as well at the same place
now try to run gdb --version and it should work.
THANK YOU!
Great !!! Simple Clean & Fast
Thank you very helpful!
thnx for this information i was misguided and i was not able to download it but now i am able thnxa lot you hhave solved a big problem of mine
Very helpful tutorial. Thank you!
Finally an easy tutorial with no bullshit that actually works
THE BEST GUIDE EVER
It worked, thank you so much!
Great and quick tutorial!
such a great and helpful video ! Thank you very much :)
I have a problem with launch.jackson please help
me too
The best so far...ty
Thnaks a lot Buddy that was a 10/10 helped me 1000%
THANK YOU, it finnaly works.
Thanks man! Great video!