Тёмный

Install and Run C++ in Visual Studio Code (Linux) 

Brian Fraser
Подписаться 29 тыс.
Просмотров 196 тыс.
50% 1

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

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 146   
@tomplaner1488
@tomplaner1488 3 года назад
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.
@samuelaktarlaskar9740
@samuelaktarlaskar9740 2 года назад
How is your progress going, Grandpa? ;)
@emanuelepacini_
@emanuelepacini_ 2 года назад
u r a legend
@radhekrishanrathod141
@radhekrishanrathod141 2 года назад
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
@prakhargupta8036
@prakhargupta8036 2 года назад
GFG kr le ho jai g
@uniquescience7047
@uniquescience7047 Год назад
@@prakhargupta8036 saale prakhar dalle
@Mike-cu3kj
@Mike-cu3kj 3 года назад
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
@ai.shimul
@ai.shimul 3 года назад
finally got vs code up and running in debian... hats off to you, sir 😄
@Beryesa.
@Beryesa. 3 года назад
Man, your voice is relaxing. :D I don't know but feels like more polite lol :D
@hennero.3826
@hennero.3826 9 месяцев назад
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.🙂
@peterhuesmann3956
@peterhuesmann3956 2 года назад
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.
@mhougey
@mhougey 3 года назад
thank you for including a section about things that can go wrong.
@parasjain1489
@parasjain1489 3 года назад
Thank you so much. I am a coder and I was struggling with this for half an hour and your solution worked. Thanks again.
@chrochetfan7274
@chrochetfan7274 2 года назад
How is developing going?
@camdenmacleod16
@camdenmacleod16 3 года назад
Super helpful! I followed a website tutorial but it didn't work for me, so thanks for making this!
@ayeshaabbasi1871
@ayeshaabbasi1871 2 года назад
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✨
@qpandrei01
@qpandrei01 3 года назад
Definitely recommend this tut fixed to topic and precise. Nothing more just go with this one
@leythecg
@leythecg 3 года назад
Great Tutorial! It works finally on my Mint 20! Thanks so much!
@mute3164
@mute3164 3 года назад
Thank you so much, I tried searching for it but none of the articles I found explained as clearly as your video.
@clickjack8011
@clickjack8011 2 года назад
Thanks alot man, you helped me get past hours worth of hassle.
@rahulsriram6295
@rahulsriram6295 4 года назад
Sir, I watched all your videos. There's no particular tutorial on RU-vid 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
@zuhail339
@zuhail339 3 года назад
Try to study Art of assembly language book
@moonrise_beatrix
@moonrise_beatrix 2 года назад
thank you for this tutorial .. it was so easy to understand and super useful!
@navpreet902
@navpreet902 3 года назад
I am from India Thanku very much it helped me alot
@ZgavY
@ZgavY 3 года назад
I installed vsc without g++ and It wouldn't run my hello world. Is that it? If I install g++ will it work?
@AangContreras
@AangContreras 3 года назад
Yes, g++ is the compiler n.n
@raghavendra6978
@raghavendra6978 3 года назад
Thanks a lot for your simplest tutorial 🙏🙏
@thegettokidZz
@thegettokidZz 3 года назад
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
@vivekpatil2930
@vivekpatil2930 3 года назад
same, if you fix the problem please let me know.
@thegettokidZz
@thegettokidZz 3 года назад
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
@harshvardhan7447
@harshvardhan7447 3 года назад
Classic code is not working Error showing
@technologyexplained
@technologyexplained 2 года назад
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??
@idkwhatagah7193
@idkwhatagah7193 2 года назад
Same
@nunyobidness571
@nunyobidness571 2 года назад
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.
@stroherdebora
@stroherdebora 3 года назад
Thanks man! That was very helpful!
@shahanahmedkhan6101
@shahanahmedkhan6101 Год назад
Love you brother, you made it simple
@ritchielrez1680
@ritchielrez1680 3 года назад
You can install Vscode from snap store without the terminal.
@parthsalat
@parthsalat 3 года назад
Agreed, the ubuntu store is a great place for beginners
@Basti1987chiller
@Basti1987chiller 2 года назад
Very good explaination thank you Professor Fraser
@ebiscaia
@ebiscaia 3 года назад
Thanks. Followed your instructions in Manjaro Linux and used clang instead
@zlobert9877
@zlobert9877 Год назад
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.
@wokeclub1844
@wokeclub1844 Год назад
If anyone has #include errors, try changing clang to g++ in the json file
@fernandobarbosa25
@fernandobarbosa25 2 года назад
Extremely helpful and didactic! Thanks!
@themuhammad1
@themuhammad1 2 года назад
Hi i need help setting up VS code for C++ windows executable apps but I use Ubuntu not Windows
@Bearded_Dragon_Sir
@Bearded_Dragon_Sir 2 года назад
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.
@edwardonsax9919
@edwardonsax9919 3 года назад
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
@usuallyclueless4477
@usuallyclueless4477 2 года назад
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.
@Raining_Potatoes
@Raining_Potatoes Год назад
what did you type in the command line to get that
@beast4000
@beast4000 3 года назад
Thanks for the info!!
@royjr.8965
@royjr.8965 2 года назад
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!!
@sivaranjani-37
@sivaranjani-37 Год назад
Thank you so much for this kind of video
@vladimirscekic4935
@vladimirscekic4935 3 года назад
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.
@ottodvalishvili7601
@ottodvalishvili7601 4 года назад
Great video. Btw what computer glasses are u wearing?
@Xiahab
@Xiahab 3 года назад
This cool. You are the best!
@duyviet5801
@duyviet5801 Год назад
YOU SAVE MY LIFE! THANK YOU!
@mrhunter7382
@mrhunter7382 3 года назад
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
@mayamenaifi6031
@mayamenaifi6031 2 года назад
Finally.. It worked
@Techtrendsgadget
@Techtrendsgadget 3 года назад
thanku very much, for such type of knowledge.
@kodizhuk
@kodizhuk 3 года назад
thanks, it helps a lot for starting
@timmartin6493
@timmartin6493 3 года назад
Thank you video was helpful second time!!!
@pwabhee0292
@pwabhee0292 3 года назад
Thank you so much. It was very helpful.
@shokhrukhbekyursunjonov6203
@shokhrukhbekyursunjonov6203 3 года назад
Thank you very much, it really worked bro!
@marcelocorrea9830
@marcelocorrea9830 2 года назад
Excelente explicação! Muito obrigado!
@johnadams9418
@johnadams9418 2 года назад
thank's man, you've very helped me.
@sinanozsahin8138
@sinanozsahin8138 2 года назад
Thank you very much.. It's very helpful for me..
@kubakakauko
@kubakakauko 4 года назад
How would one add includes, Libs and inherit from other files ?
@adamasimolowo8285
@adamasimolowo8285 2 года назад
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.
@elmahmoud2349
@elmahmoud2349 2 года назад
did u fix it?
@badrelkholy8036
@badrelkholy8036 3 года назад
Thank you so much, it was really helpful
@joaopedromarques1549
@joaopedromarques1549 2 года назад
Hello, thank you for help me. You gained one more subscriber Brazilian
@daniellima3730
@daniellima3730 3 года назад
Thanks for the video!
@santiagoeguren8310
@santiagoeguren8310 3 года назад
Excellent tutorial!!!!
@sweetjj8530
@sweetjj8530 3 года назад
Sir really thank you. You are awesome
@vahemuradyan7258
@vahemuradyan7258 2 года назад
thank you that helps a lot
@akashappu7550
@akashappu7550 Год назад
What is( [1] +done )mean?
@kumarnishant6635
@kumarnishant6635 3 года назад
Thanks, helped a lot
@nguyencung2269
@nguyencung2269 3 года назад
Thank you very much!
@mr.attila28
@mr.attila28 3 года назад
You didn't include apt install gdb ! some ppls can have truble with that !
@harshit741
@harshit741 3 года назад
at 7:51 , i can see only two options, ie, cpp build and debug active files,, no option for g++, what shall i do?
@shoaibishaqkhan4745
@shoaibishaqkhan4745 Год назад
love you brother....
@lukmanalghdamsi3189
@lukmanalghdamsi3189 Год назад
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
@jaquelineabreu861
@jaquelineabreu861 Год назад
Me ajudou muito! Obrigada! :D
@rabeehMadathil001
@rabeehMadathil001 2 года назад
thank you sir god bless you
@abdulbaricou
@abdulbaricou Год назад
it works with kali linux kindly guide me
@sudhansumtripathy
@sudhansumtripathy 2 года назад
can we stop the automatic generation of the .exe file
@kamalsharma3289
@kamalsharma3289 3 года назад
thanks bro it really help me
@mayurghuge8846
@mayurghuge8846 Год назад
Thank you.
@joshvafranklin7038
@joshvafranklin7038 3 года назад
Thanks man . Till now I thought Hello world " [1] + Done" was due to error.
@udayanmajumder474
@udayanmajumder474 3 года назад
tnks its very helpful
@speconcloud9
@speconcloud9 Год назад
Thankyou so much
@anishchauhan4127
@anishchauhan4127 3 года назад
Thank you soooo muchh sir ❤️
@rum5117
@rum5117 3 года назад
Love you!
@vivarantx
@vivarantx 2 года назад
great video man
@calin-andreipantis-simut6241
@calin-andreipantis-simut6241 3 года назад
Thank you!
@sunglevan8343
@sunglevan8343 2 года назад
thank you
@budstawudsta9115
@budstawudsta9115 3 года назад
thank you so much
@celestialadministration
@celestialadministration 3 года назад
How do you get the updated 10.02
@abdelaziz2788
@abdelaziz2788 2 года назад
omg linux is so much simpler and cleaner than windows
@scotteebee
@scotteebee 2 года назад
Why don’t you show how to develop with more than one .cpp file? Nobody uses a single .cpp file in real life.
@hanzalamansoor
@hanzalamansoor 3 года назад
I got a message : unable to locate gdp
@marciocintra2988
@marciocintra2988 3 года назад
awesome tutorial, +1 sub
@adelinopds
@adelinopds 3 года назад
deu certo consegui , verry good
@csjoy4682
@csjoy4682 3 года назад
Thanks Much
@Roman-uy7qp
@Roman-uy7qp 3 года назад
Great video :)
@apriantohendri999
@apriantohendri999 3 года назад
i got doesnt exist message? help
@Thiago-rr5kz
@Thiago-rr5kz 2 года назад
obrigado
@fredricksolomonm7363
@fredricksolomonm7363 3 года назад
Thanks!!!!
@ronaldlogan3525
@ronaldlogan3525 3 года назад
I could not get it to work. followed your instructions exactly. I suspect you don't really know how to do it
@market_advice266
@market_advice266 3 года назад
thanks man
@roodri77
@roodri77 3 года назад
Thank youuuuuuu
@gassinbeats1156
@gassinbeats1156 3 года назад
2:17 *holding my breath* me: don’t do it! STOP! don’t do it That was close
@aryanarya8
@aryanarya8 2 года назад
Super Helpful Sir!
@RomeoF8
@RomeoF8 3 года назад
nice
@TekhneWithHomayoon
@TekhneWithHomayoon 2 года назад
best
Далее
VS Code WSL (C++) - Create Project, Compile, Run
10:02
Visual Studio Code for C/C++ on Linux (2021)
13:04
Просмотров 112 тыс.
Самая сложная маска…
00:32
Просмотров 747 тыс.
История Hamster Kombat ⚡️ Hamster Academy
04:14
BEST WAY to make Desktop Applications in C++
26:00
Просмотров 916 тыс.
25 VS Code Productivity Tips and Speed Hacks
11:35
Просмотров 2,3 млн
Linux File System/Structure Explained!
15:59
Просмотров 4,1 млн