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

  Рет қаралды 198,109

Brian Fraser

Brian Fraser

Күн бұрын

Пікірлер: 149
@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 3 жыл бұрын
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 2 жыл бұрын
@@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
@doggo531
@doggo531 18 күн бұрын
I'm new to Linux and its quite overwhelming. I followed multiple guides and struggled since none of them worked. But yours did, i was close to giving up and switching back to python but this helped me so much. Thank you for this guide and your efforts.
@Beryesa.
@Beryesa. 3 жыл бұрын
Man, your voice is relaxing. :D I don't know but feels like more polite lol :D
@ai.shimul
@ai.shimul 3 жыл бұрын
finally got vs code up and running in debian... hats off to you, sir 😄
@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.
@hennero.3826
@hennero.3826 Жыл бұрын
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.🙂
@amtsad
@amtsad 2 ай бұрын
its 2024, through this video u earned a subscriber
@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 3 жыл бұрын
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!
@qpandrei01
@qpandrei01 3 жыл бұрын
Definitely recommend this tut fixed to topic and precise. Nothing more just go with this one
@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✨
@clickjack8011
@clickjack8011 2 жыл бұрын
Thanks alot man, you helped me get past hours worth of hassle.
@leythecg
@leythecg 3 жыл бұрын
Great Tutorial! It works finally on my Mint 20! Thanks so much!
@usamamuhammadismail3324
@usamamuhammadismail3324 3 жыл бұрын
I really appreciate this video. Love from Pakistan.
@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.
@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
@navpreet902
@navpreet902 3 жыл бұрын
I am from India Thanku very much it helped me alot
@themuhammad1
@themuhammad1 2 жыл бұрын
Hi i need help setting up VS code for C++ windows executable apps but I use Ubuntu not Windows
@shahanahmedkhan6101
@shahanahmedkhan6101 2 жыл бұрын
Love you brother, you made it simple
@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.
@harshvardhan7447
@harshvardhan7447 3 жыл бұрын
Classic code is not working Error showing
@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
@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
@zlobert9877
@zlobert9877 2 жыл бұрын
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.
@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.
@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
@lukmanalghdamsi3189
@lukmanalghdamsi3189 2 жыл бұрын
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
@Beast_B944
@Beast_B944 Ай бұрын
I'm in fedora it says sudo:apt-get : command not found
@moonrise_beatrix
@moonrise_beatrix 2 жыл бұрын
thank you for this tutorial .. it was so easy to understand and super useful!
@stroherdebora
@stroherdebora 3 жыл бұрын
Thanks man! That was very helpful!
@raghavendra6978
@raghavendra6978 3 жыл бұрын
Thanks a lot for your simplest tutorial 🙏🙏
@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?
@akashappu7550
@akashappu7550 2 жыл бұрын
What is( [1] +done )mean?
@duyviet5801
@duyviet5801 2 жыл бұрын
YOU SAVE MY LIFE! THANK YOU!
@fernandobarbosa25
@fernandobarbosa25 2 жыл бұрын
Extremely helpful and didactic! Thanks!
@Xiahab
@Xiahab 3 жыл бұрын
This cool. You are the best!
@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
@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
@sudhansumtripathy
@sudhansumtripathy 3 жыл бұрын
can we stop the automatic generation of the .exe file
@mayamenaifi6031
@mayamenaifi6031 3 жыл бұрын
Finally.. It worked
@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
@kubakakauko
@kubakakauko 4 жыл бұрын
How would one add includes, Libs and inherit from other files ?
@sivaranjani-37
@sivaranjani-37 Жыл бұрын
Thank you so much for this kind of video
@rahulsriram6295
@rahulsriram6295 4 жыл бұрын
Sir, I watched all your videos. There's no particular tutorial on KZbin 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 4 жыл бұрын
Try to study Art of assembly language book
@abdulbaricou
@abdulbaricou Жыл бұрын
it works with kali linux kindly guide me
@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.
@Basti1987chiller
@Basti1987chiller 3 жыл бұрын
Very good explaination thank you Professor Fraser
@ottodvalishvili7601
@ottodvalishvili7601 4 жыл бұрын
Great video. Btw what computer glasses are u wearing?
@johnadams9418
@johnadams9418 2 жыл бұрын
thank's man, you've very helped me.
@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!!
@adamasimolowo8285
@adamasimolowo8285 3 жыл бұрын
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?
@celestialadministration
@celestialadministration 4 жыл бұрын
How do you get the updated 10.02
@timmartin6493
@timmartin6493 3 жыл бұрын
Thank you video was helpful second time!!!
@shokhrukhbekyursunjonov6203
@shokhrukhbekyursunjonov6203 3 жыл бұрын
Thank you very much, it really worked bro!
@adingus88
@adingus88 4 жыл бұрын
i got doesnt exist message? help
@kodizhuk
@kodizhuk 3 жыл бұрын
thanks, it helps a lot for starting
@mritunjay7065
@mritunjay7065 4 жыл бұрын
Very helpful video for beginners like me !
@Techtrend-7
@Techtrend-7 3 жыл бұрын
thanku very much, for such type of knowledge.
@beast4000
@beast4000 4 жыл бұрын
Thanks for the info!!
@pwabhee0292
@pwabhee0292 3 жыл бұрын
Thank you so much. It was very helpful.
@hanzalamansoor
@hanzalamansoor 4 жыл бұрын
I got a message : unable to locate gdp
@ebiscaia
@ebiscaia 4 жыл бұрын
Thanks. Followed your instructions in Manjaro Linux and used clang instead
@joaopedromarques1549
@joaopedromarques1549 2 жыл бұрын
Hello, thank you for help me. You gained one more subscriber Brazilian
@sinanozsahin8138
@sinanozsahin8138 2 жыл бұрын
Thank you very much.. It's very helpful for me..
@badrelkholy8036
@badrelkholy8036 3 жыл бұрын
Thank you so much, it was really helpful
@sweetjj8530
@sweetjj8530 3 жыл бұрын
Sir really thank you. You are awesome
@daniellima3730
@daniellima3730 3 жыл бұрын
Thanks for the video!
@santiagoeguren8310
@santiagoeguren8310 3 жыл бұрын
Excellent tutorial!!!!
@vivarantx
@vivarantx 2 жыл бұрын
great video man
@kumarnishant6635
@kumarnishant6635 3 жыл бұрын
Thanks, helped a lot
@vahemuradyan7258
@vahemuradyan7258 2 жыл бұрын
thank you that helps a lot
@shoaibishaqkhan4745
@shoaibishaqkhan4745 Жыл бұрын
love you brother....
@marcelocorrea9830
@marcelocorrea9830 2 жыл бұрын
Excelente explicação! Muito obrigado!
@kamalsharma3289
@kamalsharma3289 4 жыл бұрын
thanks bro it really help me
@jaquelineabreu861
@jaquelineabreu861 Жыл бұрын
Me ajudou muito! Obrigada! :D
@mr.attila28
@mr.attila28 3 жыл бұрын
You didn't include apt install gdb ! some ppls can have truble with that !
@nguyencung2269
@nguyencung2269 3 жыл бұрын
Thank you very much!
@wokeclub1844
@wokeclub1844 Жыл бұрын
If anyone has #include errors, try changing clang to g++ in the json file
@rum5117
@rum5117 3 жыл бұрын
Love you!
@udayanmajumder474
@udayanmajumder474 3 жыл бұрын
tnks its very helpful
@rabeehMadathil001
@rabeehMadathil001 3 жыл бұрын
thank you sir god bless you
@gassinbeats1156
@gassinbeats1156 3 жыл бұрын
2:17 *holding my breath* me: don’t do it! STOP! don’t do it That was close
@Roman-uy7qp
@Roman-uy7qp 3 жыл бұрын
Great video :)
@marciocintra2988
@marciocintra2988 3 жыл бұрын
awesome tutorial, +1 sub
@anishchauhan4127
@anishchauhan4127 3 жыл бұрын
Thank you soooo muchh sir ❤️
@joshvafranklin7038
@joshvafranklin7038 3 жыл бұрын
Thanks man . Till now I thought Hello world " [1] + Done" was due to error.
@mayurghuge8846
@mayurghuge8846 Жыл бұрын
Thank you.
@witmonster9979
@witmonster9979 3 жыл бұрын
thank you so much
@speconcloud9
@speconcloud9 Жыл бұрын
Thankyou so much
@slaozeren8742
@slaozeren8742 3 жыл бұрын
I love you!
@aryanarya8
@aryanarya8 3 жыл бұрын
Super Helpful Sir!
@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.
@abshahin
@abshahin 3 жыл бұрын
thank you
@edensheiko
@edensheiko 4 жыл бұрын
thank you!!!
@adelinopds
@adelinopds 4 жыл бұрын
deu certo consegui , verry good
@csjoy4682
@csjoy4682 3 жыл бұрын
Thanks Much
@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
VS Code WSL (C++) - Create Project, Compile, Run
10:02
Brian Fraser
Рет қаралды 40 М.
Visual Studio Code for C/C++ on Linux (2021)
13:04
CodeVault
Рет қаралды 114 М.
C++ in VS Code: Building your Code with CMake
9:37
Visual Studio Code
Рет қаралды 49 М.
This Zsh config is perhaps my favorite one yet.
17:24
Dreams of Autonomy
Рет қаралды 283 М.
The Value of Source Code
17:46
Philomatics
Рет қаралды 214 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,6 МЛН
Setup VS Code with C++ On Windows 11 (or 10)
7:12
KNuggies
Рет қаралды 26 М.
Why Linux Is Better For Programming
13:32
Hallden
Рет қаралды 2,8 МЛН
How to set up C++ in Visual Studio Code
6:53
Kenny Yip Coding
Рет қаралды 1 МЛН