How to set up C++ in Visual Studio Code

  Рет қаралды 995,345

Kenny Yip Coding

Kenny Yip Coding

Күн бұрын

Пікірлер: 875
@theironrhino110
@theironrhino110 9 ай бұрын
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!
@zarifshoeb
@zarifshoeb 2 ай бұрын
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 ! 😊
@Dulkage
@Dulkage Жыл бұрын
The only tutorial that actually worked for me! Thank you!!
@thabomaleke874
@thabomaleke874 6 ай бұрын
The other ones 😞. They are really useless
@Dulkage
@Dulkage 6 ай бұрын
@@thabomaleke874 Yea
@andrewbauman256
@andrewbauman256 11 ай бұрын
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 :)
@DavidHasanov-p7r
@DavidHasanov-p7r 10 ай бұрын
my problem right here, life saver
@natepotate5025
@natepotate5025 9 ай бұрын
ive been trying to fix this problem all day when all i had to do was restart my computer, thank you
@lionsin6067
@lionsin6067 9 ай бұрын
your a life saver, its 5:35am and im so tired of trying to get this thing to work
@hime-kamisama
@hime-kamisama 8 ай бұрын
You actually only need to close all VSCode windows so that the Path changes take effect.
@blasterchampions1801
@blasterchampions1801 8 ай бұрын
Is there an error like this The preLaunchTask 'C/C++:gcc.exe build active file' terminated with exit code -1 ?
@ziprock
@ziprock 10 ай бұрын
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.
@shuaibakhtar5333
@shuaibakhtar5333 6 ай бұрын
brother, my compiler is still not working properly could you please help me
@SpeaksYourWord
@SpeaksYourWord 4 ай бұрын
@@shuaibakhtar5333 Uninstall everything and go through harry's guide
@ericroque5813
@ericroque5813 10 ай бұрын
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.
@alexwade9888
@alexwade9888 10 ай бұрын
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.
@gabrielapinheiro7643
@gabrielapinheiro7643 8 ай бұрын
same here! all possibilities ! really well explained, well done man!!!
@taongaphiri6084
@taongaphiri6084 Жыл бұрын
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.
@KennyYipCoding
@KennyYipCoding Жыл бұрын
Which step are you failing at?
@farisraid7588
@farisraid7588 Жыл бұрын
@@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
@zombz4291
@zombz4291 Жыл бұрын
@@KennyYipCoding same, when i run there's no "C/C++ :g++.exe build and debug active file"
@mink9390
@mink9390 Жыл бұрын
​@@KennyYipCoding yeah me too i try that for three times
@ZPlusiPlus
@ZPlusiPlus Жыл бұрын
@@farisraid7588 Try restarting vs studio
@fardinkhandaker3436
@fardinkhandaker3436 8 ай бұрын
I've been looking for a video like this. I always struggle to compile but now, it's not a problem. Thank you!
@awenixmusic
@awenixmusic Жыл бұрын
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.
@RamirezAnaMonicaS
@RamirezAnaMonicaS Жыл бұрын
it still doesn't work
@himanshuadhikari3986
@himanshuadhikari3986 Жыл бұрын
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
@vinamrajeet
@vinamrajeet Жыл бұрын
Instead of pasting it on path of user variable, paste it on path of system variable
@NawalAurna
@NawalAurna 11 ай бұрын
thank you it worked after doing as u said@@vinamrajeet
@itsrainingafterall
@itsrainingafterall 11 ай бұрын
THIS WORKED TYSM
@Bruh-py5hk
@Bruh-py5hk 9 ай бұрын
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.
@christiangiamalis9924
@christiangiamalis9924 3 ай бұрын
I love you. I have spend AGES doing this and this finally worked.
@StefanBuchanan-h2w
@StefanBuchanan-h2w 9 ай бұрын
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.
@franzilovesstem
@franzilovesstem 11 ай бұрын
incredibly greatful for such a nice simple put tutorial!!! Very straight to the point! love it, thanks a ton:D
@НоуНейм-к4й
@НоуНейм-к4й 3 ай бұрын
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!!!
@shahadeissax
@shahadeissax 9 ай бұрын
You saved me after 4 hrs of trying to run my code and facing problems thanks 😂
@RanaAhmed-el6wm
@RanaAhmed-el6wm 7 ай бұрын
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 .🥰🥰🥰💗💗💗
@SteveOkyere-Gyamfi
@SteveOkyere-Gyamfi 11 ай бұрын
Thanks very much. You really helped me a lot. Very simple and straight-to-the-point video. Thanks a lot once again.😊
@yashwantchougale1600
@yashwantchougale1600 10 ай бұрын
Thank you very much for uploading this to the point tutorial! I could get cpp running in one go :)
@whateverittakes5340
@whateverittakes5340 18 күн бұрын
just saw your linkedin you're from IISER Pune 👀 (you're smart af)
@mrthugduck3782
@mrthugduck3782 Ай бұрын
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!
@baryaakov555
@baryaakov555 2 ай бұрын
finally someone who goes over everything, spent two hours trying to figure this out, thank you!
@amnamahboob4097
@amnamahboob4097 2 ай бұрын
i have constantly failed in installing c++ in visual studio but today i managed to thanks to your video
@Amy_k7
@Amy_k7 9 ай бұрын
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. 🔥
@MathieuComeau-g2j
@MathieuComeau-g2j 10 ай бұрын
This is so well-made, thank you!! Subscribed, keep up the good work
@fahad11247
@fahad11247 5 ай бұрын
the simpilest and the easiest tutorial of running c++. Thanks alot
@HARIPRIYASRIPERAMBUDURU
@HARIPRIYASRIPERAMBUDURU 5 ай бұрын
I done installation within few minutes.I've been looking for a video like this.thanks a lot!!
@WickedDev
@WickedDev 4 ай бұрын
thank you bro I installed g++ and couldn't know why it wasn't working you're a life saver ❤❤
@markuchi4756
@markuchi4756 9 ай бұрын
Hi I have a question, so I followed ur vid and tried the part where I run the build and run the hello world code, when I ran the code an error appeared saying launch: program 'C:\C++\test.exe' does not exist. How do I fix this?
@Nourita_at...
@Nourita_at... 9 ай бұрын
Me too the same problem ! , i tried a right clik and run code it work perfectly 👌🏽 , but when i try his method to run the code it happen the same problem i don't know why 🤷🏼‍♀️ Any way 😅 the code works perfectly when i made Ctrl+Alt+N
@sofiaholguinjimenez5657
@sofiaholguinjimenez5657 8 ай бұрын
I had the same issue but apparently the problem is that when running the program I was choosing C/C++:gcc.exe instead of C/C++:g++.exe
@dapper4459
@dapper4459 7 ай бұрын
@@sofiaholguinjimenez5657 thanks bud this worked for me too, though the first time i ran it my antivirus detected it as a trojan lol.
@I___I___1__l__1-1
@I___I___1__l__1-1 Ай бұрын
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
@toneke0
@toneke0 Ай бұрын
I have been trying to get this program to run correctly, and after tons of tutorials without success, yours worked perfectly. Thanks a lot!" :)
@calvincampbell5833
@calvincampbell5833 2 ай бұрын
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.
@MuhammadameenKhan-i4v
@MuhammadameenKhan-i4v 10 ай бұрын
the best video i have ever watched . you explained this in detail and clearly thank you.
@harshanand901
@harshanand901 9 ай бұрын
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)
@benji6325
@benji6325 9 ай бұрын
Thank you lol
@kasulejoseph9317
@kasulejoseph9317 6 ай бұрын
After 3 attempts, it worked out. Thanks for sharing
@rajratnakhaire
@rajratnakhaire Ай бұрын
Thank you so much for your help in setting up my Visual Studio Code. Your guidance made the process so much easier.
@shreya_si9gh
@shreya_si9gh 5 ай бұрын
trying since yest but finally able to run my prog with help of the clear instructions you have provided on this video , Thank You !
@SiennaOfGalois
@SiennaOfGalois 6 ай бұрын
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!
@DivijMahajan-uc2uy
@DivijMahajan-uc2uy 7 ай бұрын
Worked in my case finally I am using vs code thankyou bro.
@lochuu8720
@lochuu8720 2 ай бұрын
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.
@ahmadjan7029
@ahmadjan7029 10 ай бұрын
I watched so many tutorials but this one worked thanks 😊😊
@rolandmuncher5438
@rolandmuncher5438 Ай бұрын
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.
@softwareengineer141
@softwareengineer141 5 ай бұрын
Thank you so much! A try a lot of videos and always struggeles in running C and C++ code . Regards👏💯
@aquilaaetius871
@aquilaaetius871 26 күн бұрын
Thanks for the video, finally i was able to set up c++ ​​in Visual Studio Code!!!)))
@suryanshbhardwaj3303
@suryanshbhardwaj3303 Ай бұрын
One of the best guides available, it was easy and fast. tysm bro
@NamNguyenNhatBao
@NamNguyenNhatBao 3 ай бұрын
love this vid! i tried to code in vscode since 1 month ago but vscode can compile the coede and no it worked! tysm
@amine4256
@amine4256 20 күн бұрын
I’ve seen a bunch of videos trying to run VS but without any results thanks to kenny for this amazing video ❤
@Stydent-uz6rl
@Stydent-uz6rl 9 ай бұрын
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.
@agustinehrman332
@agustinehrman332 9 ай бұрын
Could you solve this issue? It happened to me as well...
@agustinehrman332
@agustinehrman332 9 ай бұрын
Try selecting g++.exe when running instead of gcc.exe. That worked for me
@judesikma
@judesikma 4 ай бұрын
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!
@jamesv3309
@jamesv3309 2 ай бұрын
The article helped me put C++ into my VS Code. Thanks!
@debasiskar9076
@debasiskar9076 Ай бұрын
Thank you so much bro. Better than all other channels.
@hehe-n3h4h
@hehe-n3h4h Ай бұрын
bro this video was awesome! fast and easy been using visual studio but I'm so comfortable with VScode so thanks bro! subbed
@nicolassuarez2933
@nicolassuarez2933 5 ай бұрын
Cristal clear, outstanding!
@peach8335
@peach8335 4 ай бұрын
omgg tysm!!! such a great and comprehencive guide!
@justaweeb5052
@justaweeb5052 3 ай бұрын
Thank you so much. I've been wanting to learn c++ for a while now but never got the C++ to run 🙏
@55.mallikarjunhiremath97
@55.mallikarjunhiremath97 3 ай бұрын
Thank you so much for a easy and clean guidance.👍
@hajperito7470
@hajperito7470 8 ай бұрын
I have a problem with launch.jackson please help
@ZunnoorainAli-c3c
@ZunnoorainAli-c3c 2 ай бұрын
me too
@MahiAhmed_063
@MahiAhmed_063 3 ай бұрын
It was really a helpful video. It shows the exact procedure line by line. Thanks a lot.
@davidmeinname
@davidmeinname 8 ай бұрын
How can it be so hard to set up a C++ compiler in 2024 😩
@hossnychandoh6372
@hossnychandoh6372 7 ай бұрын
For real, it sucks!
@mr-lacker
@mr-lacker 2 ай бұрын
use vs community
@mijixiii
@mijixiii 2 ай бұрын
Frr 😭😭😭😭
@Kill_all_feminists
@Kill_all_feminists 2 ай бұрын
​@@mijixiiistupid foid! Keys without the e
@faisalsarang9655
@faisalsarang9655 4 ай бұрын
Straight to the point thanks a ton!
@user-zz8tc2ki4p
@user-zz8tc2ki4p Жыл бұрын
What should I do,if when I try to run code it goes out there " launch: program doesn't exist"
@joyeetabose5605
@joyeetabose5605 11 ай бұрын
even I faced the same problem.
@guchon8669
@guchon8669 11 ай бұрын
@@joyeetabose5605 You need to install "code runner" extension
@ante8146
@ante8146 11 ай бұрын
@@joyeetabose5605 Did you fix it?
@sachinpathak6445
@sachinpathak6445 10 ай бұрын
​@@joyeetabose5605what to do now???
@JY-mh8fr
@JY-mh8fr 2 ай бұрын
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.
@abdou2523
@abdou2523 10 ай бұрын
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
@zicraftian
@zicraftian 11 ай бұрын
helpful and to-the-point thanks for this!
@kennethumis6907
@kennethumis6907 11 ай бұрын
I think you are a teacher. Life made easy. Thanks.
@KamisatoAyato-b9k
@KamisatoAyato-b9k 3 ай бұрын
ohh this actually helpful and first youtube tutorial that i watch and it works😮😮
@fenrisfish2800
@fenrisfish2800 10 ай бұрын
Fantastic tutorial, was searching through a few videos to get started on c++ and this one was the best
@justaguy1321
@justaguy1321 6 ай бұрын
Thank you my friend, helped alot. All the best! 🙏
@tria3745
@tria3745 3 ай бұрын
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.
@hudson0125
@hudson0125 3 ай бұрын
Thank you for saving me
@ironfezz8840
@ironfezz8840 2 ай бұрын
where do i find this workspace folder?
@Rich-ll8ce
@Rich-ll8ce Ай бұрын
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.
@sarthsarode
@sarthsarode Ай бұрын
Thank you for commenting this. Ive been trying to figure it out for months
@CS-fz3vj
@CS-fz3vj 4 ай бұрын
Best guide that worked for me, thank you
@mauli1531
@mauli1531 7 ай бұрын
Your tutorial is great, it realy helped me. 😀
@arkys1929
@arkys1929 9 ай бұрын
I have one problem with VSCODE. When i run the code, an error appears "performing the preliminary task "C/C++: gcc.exe the build of the active file is " completed with exit code -1". in the "problems" is written package.json / You should not use the "*" activation, as it affects performance. How to solve this problem?
@wakysu
@wakysu 5 ай бұрын
please tell me if you'll find an answer
@Chaminox
@Chaminox 2 ай бұрын
Same problem for me
@MoherZO
@MoherZO 9 ай бұрын
Perfectly running after your tutorial thanks.
@arunprabakar6891
@arunprabakar6891 7 ай бұрын
Very well explained. Thank you for this wonderful video :)
@KabirAhmed-mg6ly
@KabirAhmed-mg6ly 5 ай бұрын
My command prompt is showing that " gcc is not recognized as an internal or external command" ......I cant diagnose the problem...
@sobhaneskandari6281
@sobhaneskandari6281 Күн бұрын
Hats off to you ! conducive ! Thanks man !
@shroukkhaled7893
@shroukkhaled7893 14 күн бұрын
Thank you, From Egypt ❤ 🇪🇬
@inshalthevlogger
@inshalthevlogger 17 күн бұрын
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
@honcho_sah_94
@honcho_sah_94 7 ай бұрын
Thank you so much! Very Helpful!
@abishekthayaanantham7157
@abishekthayaanantham7157 Жыл бұрын
It worked for me. Thanks :)
@robertmontecalbo6119
@robertmontecalbo6119 18 күн бұрын
it works thanks men keep up the good work
@daFAQ__
@daFAQ__ 12 күн бұрын
Thanks man this worked out perfectly!
@T3ddie3
@T3ddie3 10 ай бұрын
I have a problem which says launch problem does not exist... I did everything the same way you did and there is an error about text.exe. I am not sure what it is exactly, because I am still pretty new to coding.
@sscorp2432
@sscorp2432 9 ай бұрын
same, haven't found the solution yet
@princelappay8735
@princelappay8735 3 ай бұрын
THANK YOU SO MUCH YOU HELPED ME A LOT!
@mohamedboudrioua83
@mohamedboudrioua83 7 ай бұрын
thanks men i really appreciate u giving such a detailed explanation video
@Makerizms
@Makerizms 4 күн бұрын
Hell yeah, thanks for the help! Although after the final step what you need to do is restart you PC for some reason
@generalfacts01-b2n
@generalfacts01-b2n 28 күн бұрын
excuse me po can i ask?What is the meaning of this error it appears when im going to run my code.Can anyone help me solve this error? Visual Studio Code launch:program'C:\Users\ACER\text.exe' does not exist Open 'launch.json' Cancel
@aymanwashere
@aymanwashere 17 күн бұрын
Maybe you're using gcc.exe? try using the g++.
@p4rallels
@p4rallels 7 ай бұрын
it still says "'gcc, g++ or gdb (i tried them all)' is not recognized as an internal or external command, operable program or batch file." why wont this work?
@VedankPande
@VedankPande 5 ай бұрын
Check if you added the path correctly
@ryanchen7326
@ryanchen7326 2 ай бұрын
Great video for beginners! Thank you so much!
@aytenhuseynova5038
@aytenhuseynova5038 2 ай бұрын
the best and detailed guide. Thanks!
@KhadigaMater
@KhadigaMater 7 ай бұрын
such a great and helpful video ! Thank you very much :)
@Vishnu-fz5zq
@Vishnu-fz5zq 11 ай бұрын
hey yoo,it says launch: program'c:\user\vichy\test.exe' does not exist d open 'launch.json'
@projaguar6417
@projaguar6417 10 ай бұрын
Did you get it to work?
@Vishnu-fz5zq
@Vishnu-fz5zq 10 ай бұрын
@@projaguar6417 yeh man
@projaguar6417
@projaguar6417 10 ай бұрын
How? im still trying to work it out@@Vishnu-fz5zq
@Lhama36
@Lhama36 9 ай бұрын
@@Vishnu-fz5zq how, whats the fix?
@rahulllll009
@rahulllll009 28 күн бұрын
how to fix it???
@Erick-cq7mq
@Erick-cq7mq 4 ай бұрын
I am having a problem at the last step where you are supposed to run the program. It says " Launch: Program (then the location in where the file is supposed to be) does not exist" Is anybody else having the same problem?
@mjmrvll
@mjmrvll 3 ай бұрын
same here i have it too, i followed the video step-bystep but it still hasn't worked
@punkie7793
@punkie7793 3 ай бұрын
@@mjmrvll Make sure you are in the same directory with the c++ file. And make sure file path to the c++ file does not include blankspaces or non-english characters. File names especially
@mjmrvll
@mjmrvll 3 ай бұрын
@@punkie7793 it's working now, i just pressed Ctrl + Alt + N
@atharvpal7038
@atharvpal7038 10 ай бұрын
Thanks man! Great video!
@hcchen6337
@hcchen6337 3 ай бұрын
Thank you a lot. I LOVE YOU!!!!
@4n1r4
@4n1r4 7 ай бұрын
Thank you so much! You saved my life 😁
@gulai20
@gulai20 Ай бұрын
Thank you Kenny Sir, Really appreciated.
@laibazahid6836
@laibazahid6836 3 ай бұрын
thank you bro. this helped me a lot.
@Takamitzu
@Takamitzu 8 ай бұрын
Thnaks a lot Buddy that was a 10/10 helped me 1000%
@StacyJaxen
@StacyJaxen 5 ай бұрын
thanks so much this was a good clean start
@truckim4813
@truckim4813 2 ай бұрын
Thank you so much for this set up, it worked for me
you will never ask about pointers again after watching this video
8:03
Zed “kills” VSCode
12:10
Alex Ziskind
Рет қаралды 890 М.
How to Set up Visual Studio Code for C and C++ Programming
7:22
LearningLad
Рет қаралды 3,9 МЛН
Programming Is Cooked
9:30
ThePrimeTime
Рет қаралды 310 М.
Is C BETTER than C++ for beginners? // Code Review
31:16
The Cherno
Рет қаралды 65 М.
Intro to C++ Programming
11:13
Kenny Yip Coding
Рет қаралды 20 М.
How I would learn to code (If I could start over)
9:16
Jason Goodison
Рет қаралды 4,9 МЛН
VSCode Tutorial For Beginners - Getting Started With VSCode
22:57
Tech With Tim
Рет қаралды 898 М.
I tried 10 code editors
10:28
Fireship
Рет қаралды 3,2 МЛН
25 VS Code Productivity Tips and Speed Hacks
11:35
Fireship
Рет қаралды 2,4 МЛН
12 VS Code Extensions to INCREASE Productivity 2024
27:13
Devression
Рет қаралды 808 М.