Set Up C++ Development With Visual Studio Code on Windows 11 - kzbin.info/www/bejne/q2KwcmqZl7qqiK8
@xerocool21095 жыл бұрын
thanks random indian dude that always have the right tutorial for my needs
@priyanshsharma33625 жыл бұрын
bro, it has close 1 mil subscribers
@amanchaturvedi14 жыл бұрын
hahahahahaha!!!
@Bob_Weasley4 жыл бұрын
LMAO these indians really coming in clutch since they got wifi it numbs the pain from t-series winning cause of this
@gauravnegi43124 жыл бұрын
@@Bob_Weasley OK boomer
@nityanand45814 жыл бұрын
@@Bob_Weasley lol people still can't get over Pewd losing to Tseries,
@watchx76334 жыл бұрын
Ridiculous ! Learning c++ is easier than installing the code editor !
@mahansh29484 жыл бұрын
F*cking True😂
@andersoncarlos71404 жыл бұрын
ORZ
@satyammeena4 жыл бұрын
😔
@naitik17444 жыл бұрын
True AF!!!
@radu67724 жыл бұрын
Fun fact: you don't actually need any more than the extensions, just compile and run your projects from the terminal using something like gcc
@edwardkenway57794 жыл бұрын
Even after such a tedious process, I *_never ever_* encountered any error! Thanks a lot!
@truthspeaks651 Жыл бұрын
You have no idea how many videos I have gone through to find this knowledge and all of them failed to meet my needs in worst possible ways. Thank God for this channel. Stay blessed and thank you very much.
@LaylaMiki5 жыл бұрын
I wanted to give up using ths software, I found your video and now everything is working. Everyone needs your tutorial to start using Visual Studio. Thank you so much !!!
@PVguest4 жыл бұрын
Agreed! Great tutorial. Only one I found that helped.
@blink182lives1004 жыл бұрын
Great tutorial! In case anyone is having the issue "the term 'g++' is not recognized as the name of a cmdlet function" even after doing all the stteps, just save everything and close vs code and then re open. . . worked for me
@ferasyakan25582 жыл бұрын
thx man
@mrnogot42514 жыл бұрын
I feel like i need a cigarette and I don't even smoke.
@HARIHaran-ks7wp4 жыл бұрын
felt this
@riteshmishra37733 жыл бұрын
@@robbyz512 same here man
@shaktimaansupper93223 жыл бұрын
@@robbyz512 me too
@CareerHirings2 жыл бұрын
well said
@JohnWick-mk4ve4 жыл бұрын
Dropped the ideaof learning C ++ after seeing this
@vineetverma66454 жыл бұрын
keep the pencils sharp
@yagyeshtripathi12134 жыл бұрын
I heard you were a man of sheer will?
@radu67724 жыл бұрын
Really? If you don't wanna deal with this just use codeblocks, you barely have to set up anything it's so easy
@OpenWorldGamer-4 жыл бұрын
lmao
@naitik17444 жыл бұрын
Bro, you will get more complicated problems when you actually get into programming. This is your very first challenge, So stick to it!
@DSMit7775 жыл бұрын
Couldn't have coded in C++ without this tutorial. Thank you so much!
@roxanacamara74564 жыл бұрын
This was the tutorial you were looking for. Super clear and most importantly it worked. Excellent service
@laszlodanilovic49966 жыл бұрын
This is ridiculous, does it really take that MUCH just to write programs in c++?? I can't believe that in 40 years they couldn't come up with a solution for any IDE so coding with C++ can be learned. But a big thanks to this Channel's Owner that he's sharing this information.
@andRehartmaenn6 жыл бұрын
Install MS Visual Studio and you are good to go. It is a complete IDE. MS Code on the other hand is just a text editor which can be customized to fit you very needs.
@laszlodanilovic49966 жыл бұрын
Cool, thanks a lot! :)
@realshlimshady89666 жыл бұрын
@@laszlodanilovic4996 thanx man....I thought visual studio code is the IDE and spent soooooo much time figuring out how to run a simple code
@walidjabari49856 жыл бұрын
uh, code::blocks ?
@PhoenixRisingLoL6 жыл бұрын
sai surya madhav its a code editor. An out-of-the-box IDE would be QT or Visual Studio :)
@natex_16 жыл бұрын
This video is EXTREMELY useful! I have spent hours to compile C with VS Code. The documention is complete trash. This guy is the only one to explain everything. Thank you very much!
@davidalexander8295 жыл бұрын
Brutal! Nearly a half an hour to load a compiler? C++ and Visual Code just got de-prioritized. No reflection of the demo. It was well done.
@teo_k215 жыл бұрын
@@Jack3G i was trying for a long time to do this :P
@adp2papablue5 жыл бұрын
I have spent so much time trying to figure this out I love you thank you!
@jaytran2476 жыл бұрын
This is life saver for me. Exactly what ive been looking for to deal with C programming with vs code and this contains all the things that i need to build and debug my C program. great thanks.
@staticbits5 жыл бұрын
If anyone can't find the "c_cpp_properties.json", ctrl+shift+p and search for "C/C++: Edit Configurations (JSON)" then open that. In there, if you don't have the "browse" or the "path", put the code instead in "includePath". This works for me.
@gattocat37295 жыл бұрын
Thanks ill try this out
@DanteHellDrive5 жыл бұрын
Eureka! It worked thanx a lot
@sehejwahla54374 жыл бұрын
Thanx bro . You are the hero i needed
@kyho1930 Жыл бұрын
very good, thanks sir
@dvirarazi73516 жыл бұрын
Can someone please explain to me WHY such a tedious process is required to do such a simple thing? What is the proper way to learn these things? Do the creators expect people to look up KZbin videos to figure out this stuff? How do I do stuff such as including SFML and the like? How am I expected to learn how to do such a thing? What if I don't find a tutorial? Can someone please explain that?
@domusvita6 жыл бұрын
Put in the work, I guess?
@nopenopeagain43976 жыл бұрын
The latest trend in the developing world is a worryingly intense fetish with Visual Studio Code, which is a glorified Notepad++ with exceptional plugin support, fueled by a strong dislike of conventional IDEs for being "too heavy". Apparently 10GB of disk space and 500MB of RAM is too much to ask for in times where both RAM and disk space are dirt cheap, so these people complicate everything.
@cla18146 жыл бұрын
just IORun extension in VS code and click run that is it. Simple.
@foster59025 жыл бұрын
I can perfectly relate to this, it's fucking ridiculous to go to such miles just to run C++ codes.
@tanker2425 жыл бұрын
@@foster5902 miles? No... if your on linux you can run c++ code in 5 seconds. sudo apt-get install gcc vim main.cc ... write hello world program then save and exit the text editor vim... g++ main.cc ./a.out ... Hello World! ... Done! Windows is the same way but but not as fluid which it why many developers use linux. Vscode is just another text editor with code highlighting like vim, notepadd++ ect. Technically id you already havw minGW for windows installed you can write a c program in anytext editor like notepad then run g++ on your .cc or .cpp file from the windows console to conpile your peogram. You can make gcc compile for any operating system or architecture its able to even if your arent on the type of OS or architecture.
@tanmoybanerjee62756 жыл бұрын
i just cant describe in words how much your videos help me.....
@vy81554 жыл бұрын
disclamer : People who will try this method needs patience, internet ,5 hours+ brain usage and still you may get nothing. So u can try it with two or three clicks as well do that but if u wanna do lot of struggle than go this way Edit:Otherwise just install extension of code runner and u are in :)
@mohitsilori60644 жыл бұрын
so true
@mousumgogoi1634 жыл бұрын
Thank You Sir, For all of you there who is saying this cumbersome, this is the most detailed video on this topic.
@dhruvarshidas87864 жыл бұрын
9:42 I am not getting a green squiggly line...???
@noobnessmee4 жыл бұрын
Continue watching from 13:20
@Dan.TheFriendlyGuy4 жыл бұрын
install code runner as well, as you have install C/C++ intellisence
@MyNamesEman4 жыл бұрын
@@Dan.TheFriendlyGuy I've only heard of "code runner" from that other video on KZbin video on how to C++ on Visual Studio Code. "code runner" seemed sketch to me because it had few downloads compared to Microsoft extensions. Also, to you point, it seems "IntelliSense" is already in Microsoft's "C/C++" extension. I followed the first reply "Continue watching from 13:20" and managed to get it working without Code Runner. I don't want to spread misinformation or anything but the low download count sketched me out, idk.
@Dan.TheFriendlyGuy4 жыл бұрын
@@MyNamesEman Yeah, it can be done without code runner too. There are always alternate options, one can opt according to their convenience.
@fry60904 жыл бұрын
I've been trying to set this program up for like 4 days lol. You helped me out a lot, but I couldn't do one of the steps, but it still worked. Thanks
@prasad666644 жыл бұрын
1st question - how settings.json is generated? At 13:02 2nd question - Why Output file a.exe is not getting created in my PC? at16:09 3rd question -why I'm still getting the error "The terminal process terminated with exit code: 1 "
@RishabhGKoenigseggRegera4 жыл бұрын
2. I had this issue. The CPP file I had written didn't have hello world or anything, it just said include iostream. I think a.exe is not created if your code doesn't actually do anything.
@sankhere73834 жыл бұрын
Same. But have you fixed by now?
@MyStockz4 жыл бұрын
@@sankhere7383 Same question
@prasad666644 жыл бұрын
@@sankhere7383 no
@anonymous-67164 жыл бұрын
"code.visualstudio.com/docs/cpp/config-mingw" Read carefully from here you got all of your answers.
@yllanojayvalido1652 жыл бұрын
Better than the other video which claims to setup c and c++ but c is only thing he is working with. This is much more intuitive and holistic.
@sophianing1314 жыл бұрын
14:01 when i execute task in terminal it says 'g++' is not recognized as an internal or external command, operable program or batch file. please help
@fabiangazzia61694 жыл бұрын
Got the same problem. Did you find any solutions?
@sophianing1314 жыл бұрын
@@fabiangazzia6169 no, i'm sticking to codeblocks for now
@sivaramakrishnansubramania19564 жыл бұрын
yeah, the terminal in VS code wouldn't have the updated copy of the env variables you just added, so you have to restart vs code after changing the PATH
@huguitosilva15 жыл бұрын
I saw a lot of videos, and this one was the best, that really solve my problem with C compiler and run.
@AjaySharma-le3df4 жыл бұрын
For absolute beginners Dev c++, codeblocks are a really good alternative to this.
@harisharan52834 жыл бұрын
well.... i was coding previously in bloodshed dev cpp ( v 5.x) and accidently deleted it. i thought i should try some other ide and chose this one. But after seeing such a tedious process to just run the code, I m back to my trusted bloodshed dev. you are good to go after the installation no fuss no muss.
@lokeshshingadi4 жыл бұрын
Do everything mentioned in the video and download the extension "code runner" then you have a play button at the top right corner that compiles and executes the code.No need to write that stuff for compiling and executing.
@OpenWorldGamer-4 жыл бұрын
yea this video made all look a whole lot more complicated lol
@II_xD_II4 жыл бұрын
bad practice smh
@shockonfact82352 жыл бұрын
Finally done with my setup . Thanks alot . Trying from 2 days . Finally done
@gvcallen4 жыл бұрын
This process has been vastly improved with newer versions of VS Code: 1. To setup C++ for MinGW, follow this quick tutorial: code.visualstudio.com/docs/cpp/config-mingw 2. To easily setup C++ projects with tasks, configurations etc. setup for you, download this extension: marketplace.visualstudio.com/items?itemName=ACharLuk.easy-cpp-projects (I have not tried this personally but I am sure it works as expected) Due to the modular design of VS Code, this process is similar for setting up most "uncommonly used" languages with it. Once you realize the actual design idea behind VS Code, you understand that a relatively quick setup cycle is worth it for the simplicity and modularity you receive afterwards.
@dastanasanov32144 жыл бұрын
This video honestly just straight up saved me, huge thanks to you
@doncheadle79765 жыл бұрын
Thanks so much, I was stuck on the iostream error. This was the only that fixed the problem
@DDismas4 жыл бұрын
indian people are the holy dispenser of programming knowledge for beginners
@kennethzhang18885 жыл бұрын
Excellent video. All my troubles are gone.Thank you!
@shreyashsingh1015 жыл бұрын
Do we have to edit these config files Everytime we create new projects...or is there a way around it?
@vaclavprochazka42885 жыл бұрын
Thank you so much for this. I've been stuck using code blocks for what seemed like eternity...
@noweare15 жыл бұрын
What's wrong with code::blocks, simple compared to this
@meetpatel70606 жыл бұрын
Can't you generalize the tasks.json build file for compiling ANY .c/.cpp file (which is currently open) which does *NOT* have the name "main.cpp" ? I mean, for your shown build method to work, your file name has to be main.cpp and not xyz.cpp. Any solutions?
@michaelbergman87585 жыл бұрын
Yeah, I was wondering the same thing. There's no way that they the only method is to have your files have one specific name. That's crazy.
@tanker2425 жыл бұрын
I didn't follow the video that closely but in those cases you would insert a wildcard character into that part of the build settings. Also from what I hear vscode works on a project basis. For example if you are working on a project you run the command from the root folder and it will compile all c, cc, and cpp files into .o files then merge them into an output file
@shapedsilver36894 жыл бұрын
Thanks so much, I was watching another tutorial more generally on C++, and they said they'd show me how to set it up for Visual Studio Code, and it wasn't working for me. They skipped over almost all of this! I'm extremely grateful
@19Ultraviolet955 жыл бұрын
Couldnt even get it to work and followed e v e r y step to this. :/
@thaninake4 жыл бұрын
The best vscode tutorial i ever wached.
@himanshuparganiha77874 жыл бұрын
Do we have to repeat the procedure that we do for compiler every time whenever we make a new file in VSC
@malikdev28335 жыл бұрын
if you have a problem like "g++ is not recognized as an internal or external command operable program or batch file" you have to close the vs code and open it again. Nice job programmingKnowledge and thanks.
@Wolf-yp2qk5 жыл бұрын
Helped me out, thanks
@shafayetemon74245 жыл бұрын
Do I need to do this task every time I create a new CPP file?
@akashsahu33384 жыл бұрын
I also have same query, please anyone help us
@yoddha6214 жыл бұрын
Yeah can anyone tell
@gvcallen4 жыл бұрын
No - he is just demonstrating how you can compile a C++ project where there is only a single cpp file. Look into this extension marketplace.visualstudio.com/items?itemName=ACharLuk.easy-cpp-projects
@newworld42524 жыл бұрын
Of course not.
@fubrian29454 жыл бұрын
Your tutorial is outdated, and so is your video description. I looked all over KZbin and you are the only channel that actually explains this properly. Can you please make another video or leave updated instructions somewhere. Much appreciated! On another note, if you can tell us what version of VS you were running, we can install that version and follow the tutorial step by step.
@joeyvigil5 жыл бұрын
Just add the extension "C/C++ compile run" by danielpinto8zz6 and press F6. So much easier. Steps: 1. install vs code 2. install mingw 3. add the path of the bin folder to environmental variables as shown in video 4. add the extensions "C/C++ intellisense, debugging, and code browsing" and the "C/C++ compile run" 5. write download or copy&paste a hello world program, open it on visual studio making sure the file extension is ".cpp" 6. press F6 while the cursor is on the completed program, it should compile and build an ".exe" file
@carstenflasche3785 жыл бұрын
Thanks man your tip helped me alot
@BigMarini5 жыл бұрын
Thank you so much, this not only works for C++ but all the possible programming languages in the extensions, it isn't intuitive at all, thank you for the tutorial!
@abhisheks80176 жыл бұрын
In tasks.json instead of changing the filename everytime, we can specify "${file}". This will resolve to the current file. I am using these steps in Ubuntu, and this works great, instead of changing the file name for each new file.
@bhupenpal5 жыл бұрын
Can you please tell me the steps for doing this in ubuntu. I am new to Ubuntu.
@RealityXHD6 жыл бұрын
Thanks a lot for this video! It really helped me a lot. I was getting some errors about g++ in vscode. I think adding the mingw path to the system's variable directory really solved the whole problem. I tried running the file again without going through the rest of the steps in the tutorial and it still work!!! Once again, thank you very much!
@anthony36042 жыл бұрын
Thanks bro :)
@goodboyelvis4 жыл бұрын
Is there a simpler IDE? I just want to practice c++ ... I wasted my time trying to run a simple helloworld.cpp on atom and vs code
@4cbeat_464 жыл бұрын
Yes, Dev-C++.
@jeffreyhicks63804 жыл бұрын
Visual Studio has C++ features. Not as lightweight as Visual Studio Code though. It does however automatically compile C++ code.
@raulescobaro98546 жыл бұрын
hi ppl only to clarify, thx for the video and this works 100% follow the step a it say I waste like 3 days trying to do all this guy mayde in 30 minutes and finally can work with c++ in visual studio code n.n
@iamnotwhoyouthinkiam79945 жыл бұрын
there is no "squiqly" line on my include: #include what should I do?
@gattocat37295 жыл бұрын
same with mine
@aravinda5135 жыл бұрын
Same here
@iamnotwhoyouthinkiam79945 жыл бұрын
Guys, just do whatever it shows in the video, it will work👌🏼
@gattocat37295 жыл бұрын
@@iamnotwhoyouthinkiam7994 i got past that squigly problem. The problem now is that I dont have the path under browse so how can we follow the tutorial
@iamnotwhoyouthinkiam79945 жыл бұрын
Yamerooo just copy the code in the description.🤷♂️
@bartoszknec91576 жыл бұрын
Nice tutorial, man. The "Oke" was the best
@tishaanants3 жыл бұрын
I have got literal dreams about this... There's all kinds of probs
@chadconway3356 жыл бұрын
Thanks so much for this! The VS Code docs on this topic are confusing and show no examples. Been struggling with this for months and now I'm sailing!
@maggiechai99515 жыл бұрын
Sir, after creating task.json file and pressing ctrl+shift+b it shows -------- 'g++' is not recognized as an internal or external command, operable program or batch file. Please help.
@benstech-swe5 жыл бұрын
Merchants please can you clarify what you meant by your comment I am having this problem too
@sonugodda17715 жыл бұрын
@@benstech-swe hey have you got resolved your issue
@benstech-swe5 жыл бұрын
@@sonugodda1771 Yes it took a while but my compiler path was off
@017_nikhilsingh35 жыл бұрын
@@benstech-sweReviews how did u resolve that issue. Please share
@harshteck5 жыл бұрын
Just close and open the application. It will work
@HimanshuSingh-jq7yg4 жыл бұрын
Thanks for the video. Just use code::blocks you are good to go
@ashay_g_jain5 жыл бұрын
hello sir ..can you make a video same as like how to debug c program in vs code with same config. plz.
@quinnico29225 жыл бұрын
HONESTLYYYYYY!!! Thanks so much it took me two days to get this working..
@rutik425 жыл бұрын
Do we need to do this for every program. All these commands and steps just to run a simple program.
@MattZelda5 жыл бұрын
This is because windows is shit to develop on.
@arielspalter74255 жыл бұрын
Dude, you are a godsend! Thank you so much for this tutorial.
@gattocat37295 жыл бұрын
i dont have the workspaceroot in the path. what should i do?
@abh2896 жыл бұрын
Superbly and clearly presented with all details !
@sonnyphanlife6 жыл бұрын
error. /bin/bash: g++: command not found The terminal process terminated with exit code: 127 How to fix?? bro
@slowtuber53455 жыл бұрын
The same problem
@cvrucodex95425 жыл бұрын
Have you installed the minigw correctly? when you open a terminal and type the command G++ --version does it say the version?
@maryamgill21315 жыл бұрын
How did you fix this problem? I'm having the same problem.
@piccolaradge83335 жыл бұрын
@@cvrucodex9542 my version is something called "Rev3" although I installed MinGW
@mvsr17294 жыл бұрын
Just simply restart PC, it should solve issue
@raktim866 жыл бұрын
this is very helpful video. from last few days i was unable to set up VS Code. thanks
@poornimahs10334 жыл бұрын
Executing task: g++ -g "demo1 .cpp" < 'g++' is not recognized as an internal or external command, operable program or batch file. The terminal process terminated with exit code: 1 Terminal will be reused by tasks, press any key to close it. kindly let me now the solution
@anshvashisht85194 жыл бұрын
yeah i have the same problem
@creativestudio86734 жыл бұрын
I tried restarting Visual Code it worked for me.
@Dakilangmanok5 жыл бұрын
Thanks for the clarification. I had seen where someone had typed up these instructions, but they weren't exactly clear in certain parts. I got what I needed from this video. Thank you so much.
@Returnality4 жыл бұрын
I followed the instruction to the letter and got an error in the command prompt where it couldn't find g++. Any advice?
@Returnality4 жыл бұрын
@AS - 08RS - Sir John A Macdonald Sr PS (1540) It's not a VS Code issue, it's an issue with Microsoft's command prompt.
@Returnality4 жыл бұрын
@AS - 08RS - Sir John A Macdonald Sr PS (1540) I don't think you understand. I'm NOT using the VSCode terminal. The error is in Microsoft's native command prompt, it has nothing to do with VSCode.
@lucasrasera13204 жыл бұрын
As I watch this video I tought: Must have a faster way. And it is, thank god! There is a VS Code extension called "Code Runner". Make the process a whole lot easier. I don't know if its resolve all the problems, but, at least to start learn, it helps.
@adeshpradhan13144 жыл бұрын
best way thanks
@sarthakshukla61404 жыл бұрын
there is no option for edit include path setting when i hover over #include
@patrickperales19934 жыл бұрын
ctrl+shift+p
@patrickperales19934 жыл бұрын
He talks about it at 13:09
@patrickperales19934 жыл бұрын
But we are working with a different version 9.3.2 or something like that and it looks completely different from what he has. There is no browse path just an include path.
@anuragbhatt285 жыл бұрын
Truly a great tutorial for setting up vs code. Thanks a lot.
@meedman49606 жыл бұрын
question : after i do another new program after this configuration how should i build and run and debbug ?
@medilies5 жыл бұрын
First time create a simple hello world programme like shown in the video then this will become your template for other projects. The cpp and exe files' names will always be the same main.cpp & a.exe but with different content So copy the entire folder Change the name of the folder to your project name Then do ur work
@steveokinevo6 жыл бұрын
Super video man, have been looking for this for some time, thank you
@Dan_2134 жыл бұрын
9:33 The green line dont appear to me
@sarthakbansal13034 жыл бұрын
what have you done ? even I'm facing the same issue
@waliddk8014 жыл бұрын
ctrl+shift+p enter : C/C++: Edit configurations (JSON) you'll get c_cpp_propreties.json
@EpicPankaj4 жыл бұрын
@@waliddk801 i am still getting include path error what to do
@VishalRathod21086 жыл бұрын
really helpful, just followed each & every step and got succeed...thanx a lot..keep up the good work.
@zawadmubarratbhuiyan10485 жыл бұрын
Codeblocks: Hold My Beer :-P
@pangpengmaster4 жыл бұрын
bear?🐻
@vikashseelam97524 жыл бұрын
even code blocks is giving errors now
@ramongiovane4 жыл бұрын
Codeblocks is easy to get started but, the editor is stuck in stone age, MS WordPad is smarter than that thing! Also has a crappy debugger. So, that shit stinks!
@medilies5 жыл бұрын
What is the reason of the settings.json appearance at 23:34 Also if I want to compile using c++11 what should I do ?
@蠫中6 жыл бұрын
can I ask you , what do you do in 13:00~13:02?
@VOGTLANDOUTDOORS6 жыл бұрын
I had this SAME issue... HOW right at timestamp 13:02 did a settings.json files SUDDENLY/MAGICALLY appear ???
@dvirarazi73516 жыл бұрын
I believe that it appear there since he closed its tab, probably because VS Code assumes that we'd likely want to open it again so it leaves it there for quick access
@athoshicks23263 жыл бұрын
I love how he put the label in the bottom right corner just to cover up the windows watermark
@velos1tyzclips3436 жыл бұрын
Do we need to follow all these steps for every new cpp file we create? I mean always edit cpp _settings.json and task.json for every new cpp file?
@blueblue33016 жыл бұрын
No, cpp_properties.json and task.json is used to build project, but not which file. If you need to debug, you need to configure the launch.json file.
@keepindafunk5 жыл бұрын
{ "label": "echo", "type": "shell", "command": "g++", "args": [ "-g", "${relativeFile}", "-o", "${fileBasenameNoExtension}.exe", ";", "./${fileBasenameNoExtension}.exe" ], "group": { "kind": "build", "isDefault": true } } ] } Adding the following variable to your tasks.json file will make it so you don't have to manually change the file name.
@tanker2425 жыл бұрын
No you can create an environment that intakes a wildcard that will accept all your .cc, .cpp as longas you take the time to set up your environment.
@solowolf53044 жыл бұрын
after following your process upto 16:43, there are two issues that i noticed : 1. i m still getting this message #include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (C:\Users\Humble Fool\Desktop\CodeOn\VS coding\main.cpp). 2. and i couldn't find a.exe file why is this ase happening with me ?
@khodis20026 жыл бұрын
At start it is written: Choose the programming language: C++ (Windows) C++ (GDB/LLDB) Note.js I choose both c++, but nothing happens, upon restart, again this happens. I don't know, what can I do. Plz help. #include using namespace std; int main() { cout
@EmadSaeed5 жыл бұрын
Do I have to do this all staff every time i create a new project ? I almost create tens a day anyway thanks man
@thederpsters8804 жыл бұрын
Emad Saeed no
@H_I_R_B_O3 жыл бұрын
I thought I had gone through hell....then I came by VS Code.
@chetankushwaha90526 жыл бұрын
It do not create a.exe file It shows g++ is not recognize d
@leofiis6 жыл бұрын
You need include g++ in your path envorioment
@MinhTran-ew3on6 жыл бұрын
Can you explain more clearly,?thanks!
@arcxesgames17856 жыл бұрын
if you have not found it yet you need to add it to your system environment variables, he does this at 5:12
@edemkokou53796 жыл бұрын
I have the correct path but I still face the same problem. No exe file and "g++ : The term 'g++' is not recognized as the name of a cmdlet,..."
@ashishmishra72146 жыл бұрын
i was also facing the same problem earlier, all you need to do just save your work close VS code and restart it with run as administrator it will sure gonna solve this issue...
@crabjuice476 жыл бұрын
Wonderful. Detailed and easy to follow.
@subhradipsaha95184 жыл бұрын
I guess the configuration process has changed with the new VS. It opens an IntelliSense Configurations tab. Can someone suggest how to setup? edit: there is a json file which can be configured.
@ritvikverma59693 жыл бұрын
Where?
@FiftiesDad3 жыл бұрын
Thanks for the help, this is absolutely insane.
@shahdokaOfEgypt6 жыл бұрын
Thank you very much for the helpful tutorial! I am wondering, do I have to repeat the same process for every single C++ program I wish to write?
@shivamwagh226 жыл бұрын
following ^
@manishrana35963 жыл бұрын
so u found your answer ?
@АлексейБлагинин-е9ж5 жыл бұрын
Thank you. Your guide was extremely helpful!
@syntaxed25 жыл бұрын
The editor is so unintuitive/convoluted it takes multiple youtube tutorials just to get a basic setup. This is so typical of MS, sorry to say.
@anmolmeda51514 жыл бұрын
Hands Down for you. ..amazing explanation
@quinnleydon86366 жыл бұрын
When I open my c_cpp_properties.json It looks very different. Should this still work? { "configurations": [ { "name": "Win32", "includePath": [ "${workspaceFolder}/**", "C:\\MinGW\\lib\\gcc\\mingw32\\6.3.0\\include\\c++" ], "defines": [ "_DEBUG", "UNICODE", "_UNICODE" ], "cStandard": "c11", "intelliSenseMode": "msvc-x64" } ], "version": 4 }
@adityajain72885 жыл бұрын
yes this will work.
@maximlyakhovitsky27445 жыл бұрын
Thank you for the vid you saved me after 2 hours of searching!
@bhavyashah88475 жыл бұрын
Okay this video helped me setting up my c++ environment in VScode. Thank you!
@rishigupta65156 жыл бұрын
i do not get green line when i write iostream ....how do i update path??? i even reloaded after i installed extension
@КимЗыонг6 жыл бұрын
ctrl+shift+p -> C/CPP: Edit Configurations
@rishigupta65156 жыл бұрын
thanx
@sourabhk23736 жыл бұрын
ctrl + shift + p then type c/cpp you should select the first one.
@serpathius6 жыл бұрын
When I click C/CPP: Edit Configurations nothing happens. At this point it seems like microsoft notepad and the cmd prompt is a better option.
@fonkyjunky84775 жыл бұрын
It says g++ is not recognized as a cmdlet when i run the terminal at 16:47 what to do?
@gabrielapopescu49605 жыл бұрын
I have the same issue.
@tanmayrao30076 жыл бұрын
when I try to write any other program eg: even/odd, it shows "hello world" at the output terminal. Can it be fixed ?
@yashpriyadeepkatta88235 жыл бұрын
Suffering from Samee..
@aayushbhatnagar19995 жыл бұрын
save your code
@kadblue20005 жыл бұрын
you have to build it again and then run the exe file.
@poolmasters45345 жыл бұрын
This was greatful. Thanks a lot am starting to learn coding