Install and Run C++ in Visual Studio Code (Linux)
Вставка
- Опубліковано 18 вер 2024
- Covers how to do the following under Linux (Ubuntu):
- Install G++ and GDB
- Install VS Code
- Open a workspace for multiple activities (labs / assignments)
- Compile and run from within VS Code
Dr. Fraser. Thank you for what you are doing. I am 81 years old. I have, for many years, wanted to learn some basics about programming. I shall be following your site.
How is your progress going, Grandpa? ;)
u r a legend
I always think I know everything. and find it very difficult to learn new thing because of lazyness and fear. I don't know how to deal
GFG kr le ho jai g
@@prakhargupta8036 saale prakhar dalle
I can't thank you enough for this. I've spent about 20 hours trying to get c++ to compile and run on vscode linux. Now it finally works. Thank you sooo much for this
Man, your voice is relaxing. :D I don't know but feels like more polite lol :D
finally got vs code up and running in debian... hats off to you, sir 😄
Another person thanking you here. I have been away a couple years from trying to get back into coding. This saved me a lot of time to get started with VS Code in Linux.
thank you for including a section about things that can go wrong.
Thank you very much! Following these instructions, I could easily get the C++ compiler (g++) running in my existing VS Code that I had installed a few weeks ago to use PlatformIO. 🙂
As I am new to VS Code and therefore not familiar yet with how the use the different extensions, I appreciate especially the valuable information you provided regarding starting the IDE from the command line! This allows me to simply start the software from either a folder containing PlatformIO projects or a folder that I am using for the C++ stuff.🙂
Super helpful! I followed a website tutorial but it didn't work for me, so thanks for making this!
Thank you so much. I am a coder and I was struggling with this for half an hour and your solution worked. Thanks again.
How is developing going?
Thanks a lot man I was struggling with vs code for quite long time but can't understand anything and your video worked like a magic✨
Definitely recommend this tut fixed to topic and precise. Nothing more just go with this one
Great Tutorial! It works finally on my Mint 20! Thanks so much!
Sir, I watched all your videos. There's no particular tutorial on UA-cam about setting up an IDE or Editor for programming in Assembly. Every CS student has to go through assembly programming. I hope you'd make a tutorial soon
Try to study Art of assembly language book
Thanks alot man, you helped me get past hours worth of hassle.
hello, this tutorial is amazing. But I have an issue regarding the installation of classic code. I have a Mac of which the architecture is M1, and therefore it is giving the error:
snap "code" is not available on stable for this architucture (arm64) but exists on other architectures (amd64)
what should I do??
Same
Thanks a lot for your simplest tutorial 🙏🙏
You can install Vscode from snap store without the terminal.
Agreed, the ubuntu store is a great place for beginners
mine just opens an empty json without anything inside except for my theme. the little suggestion bar doesn't do after i select GDB/LLDB just opens the empty json file in settings.json
same, if you fix the problem please let me know.
if you still have this problem it's probably because you're in the wrong json file. You need to switch to the configuration json instead of the settings.json
I am from India Thanku very much it helped me alot
Thanks man! That was very helpful!
thank you for this tutorial .. it was
so easy to understand and super useful!
Thanks. Followed your instructions in Manjaro Linux and used clang instead
If anyone has #include errors, try changing clang to g++ in the json file
Very good explaination thank you Professor Fraser
I really appreciate this video. Love from Pakistan.
This cool. You are the best!
Extremely helpful and didactic! Thanks!
Thanks for the info!!
Thank you so much, I tried searching for it but none of the articles I found explained as clearly as your video.
Great video. Btw what computer glasses are u wearing?
Love you brother, you made it simple
Thank you for this video, can i ask you: how setting/use hot keys for the compilier in VScode? If i want use keybord for the start programm.
Thank you so much for this kind of video
Classic code is not working
Error showing
Very helpful video for beginners like me !
Finally.. It worked
Hi Brian, thanks for this super helpful video.
Just a problem I'm facing: I'm having to choose the environment (g++) every time I hit F5 not sure why? Any suggestions? thanks again!!
Just a little correction, installing snap alone didn't work because it said " sudo: snap: command not found"
It worked after installing snapd after it.
what did you type in the command line to get that
Thank you video was helpful second time!!!
YOU SAVE MY LIFE! THANK YOU!
Why does VS Code automatically create the launch.json file here? Is there some sort of add-on that does it? Mine only creates a tasks.json file.
Thank you so much. It was very helpful.
thanku very much, for such type of knowledge.
thanks, it helps a lot for starting
How would one add includes, Libs and inherit from other files ?
Only thing that is different on my system(linux mint) is that the "[1] + done" is on the same line(no spacing between) as the string i printed out. Would like to change that.
2:17
*holding my breath*
me: don’t do it! STOP! don’t do it
That was close
Setting the environment doesn't work for me, all it does it open a .json settings file and then when i try to run it again it does the same thing all over.
thank's man, you've very helped me.
Thank you so much, it was really helpful
Thank you very much.. It's very helpful for me..
Thanks for the video!
Excellent tutorial!!!!
love you brother....
Hello, thank you for help me. You gained one more subscriber Brazilian
Thank you very much, it really worked bro!
Excelente explicação! Muito obrigado!
Hi i need help setting up VS code for C++ windows executable apps but I use Ubuntu not Windows
Thank you so much!
I have a permissions issue. My .c file compile/build but when I run them they all say permission denied. This is what shows in the xterm that pops up. Even after I set the chmod +x or even 788 I still get this. What do I need to do? It does this whether in sh, bash, or csh
Thankyou so much
thank you that helps a lot
When I run C++ code to compile, my system freezes for a bit before I see any output in the terminal. After the compilation, my system(the VM image I'm using) ends up very laggy. I'll find a fix for this, but seems like it's an issue with the RAM and/or CPU.
did u fix it?
Thanks, helped a lot
Sir really thank you. You are awesome
Thank you.
thank you sir god bless you
tnks its very helpful
Thank you soooo muchh sir ❤️
Love you!
thanks bro it really help me
Thanks man . Till now I thought
Hello world " [1] + Done" was due to error.
great video man
omg linux is so much simpler and cleaner than windows
thank you
Thank you!
for some reason my pc download "lunch.json" configuration empty, so i had to write the configuration from you in 7:57. it works now but i don't know why that happened. i am using pop os
Me ajudou muito! Obrigada! :D
thank you so much
Great video :)
Thanks Much
at 7:51 , i can see only two options, ie, cpp build and debug active files,, no option for g++, what shall i do?
hello sir,,I wana specify that i will debug with c++17 in vscode. than how to set??i wish u will make a video
awesome tutorial, +1 sub
What is( [1] +done )mean?
it works with kali linux kindly guide me
Thanks!!!!
can we stop the automatic generation of the .exe file
I installed vsc without g++ and It wouldn't run my hello world. Is that it? If I install g++ will it work?
Yes, g++ is the compiler n.n
thanks man
obrigado
How do you get the updated 10.02
You didn't include apt install gdb ! some ppls can have truble with that !
best
Thank youuuuuuu
nice
deu certo consegui , verry good
I love you!
🥰💜
i got doesnt exist message? help