C/C++ with Visual Studio Code for Chrome OS and Linux
Вставка
- Опубліковано 21 жов 2024
- Here’s an updated video for setting up Visual Studio Code for C/C++ coding. Before I couldn’t get C/C++ working in Visual Studio Code so my previous video used Netbeans. I finally got it working and this video will show you how.
Commands to run:
Update packages and repositories:
sudo apt-get update
sudo apt-get upgrade
Install gcc and debugger:
sudo apt-get install build-essential gdb
Test gcc installation:
gcc --version
Links:
Install Linux in Chrome OS:
• Installing Linux on Ch...
Install Visual Studio Code:
• Install Visual Studio ...
Attributions:
C++ logo
Credits
Linux Mascot image:
lewing@isc.tamu.edu Larry Ewing and The GIMP / CC0
Jeremy Kratz / Copyrighted free use
I am back again........ remember me..... told you that you are the man with no haters
Hey man. I just followed your steps on my arm64 chromebook and it works. Thanks.
Great to hear!
Lu's Tech Source uiuuuuuuuuuuuuu
you are my god. i wasted two hours trying to figure it out. and you solved my problem in a jiffy
tysm.
Thanks a bunch, I was stuck from previous videos and your info on how to configure default build task unstucked me!
Holy cow i've spent soo many days trying to get this right. Your videos are awsome!
yooo you helped me out soo much im sharing this too other chromebook users
Just in time to see Lu in action. What a great way to enjoy my Saturday night with you in action bro. 8^)
Anthony...
Always good to hear from you Anthony! Hope you are having a great night.
thank you so much, i wouldnt have EVER gotten it without this haha
Sweet! Got it working, thank you.
Just loved the way you described everything.
Thank you!
This really helped.Thank you😊
Glad it helped!
I have just finished watching the video and it was exactly what I needed except for one thing, how do you access a folder that already exists.
I already have a folder with files I want to access through VSCode, but don't know how to, as I can not press ok to select the folder I want. If you can help that would be great and thanks for this great video.
Very clear -- thanks so much.
Excellent video! I have a MacBook but since it is very expensive, I don't feel comfortable taking it too work so I bought a Chromebook, so I am able to lay it around. Anyways, thank you for your help! I spent 2 days on and off trying to figure out how to get Chrome to run C/C++.
Now the last thing I have to figure out is how to run Java/Kotlin on vs-code, any ideas?
Thanks Lu, you have been a tremendous help!
Unable to write file '/home/.vscode/tasks.json' (NoPermissions (FileSystemError): Error: EACCES: permission denied, mkdir '/home/.vscode')
problem: it doesn't show the correct things at 5:07
same here
yeah same problem
Can i just run "run code"? When i click on the Button "run code" the program didn't run.
I get "perrmission denied" when running the executable. Everything else worked without errors. I guess there is some administration to do? Something more to setup that isn't mentioned?
i have in stalled everything correctly but when i run my codes it is telling me that permission denied what can be the problem i need help
Didn't work! First the gcc was installed correctly. But then, after inputting the hello world code, it didn't show up in the configure default build task. Only some generic "default c/c++" and a bunch of make-files. I choose the only c/c++ option. Then it built without errors.
But when running it from the command line it just spat out a bunch of errors:
"/hello: line 17: namespace: command not found
./hello: line 23: syntax error near unexpected token `('
./hello: line 23: ` typedef decltype(nullptr) nullptr_t;'"
It does work only using the commandline with g++ filname.cpp and then ./a.out . But then what is the point of Visual Studio at all if only the command line works?
Thank you :) 🙏
You're welcome! 😊 Glad to help!
Which software are you using for the screen recording?
I connect my Chromebook to my PC using an El Gato GameCapture HD.
Thanks a lot. It worked 😊
when running the helloworld code i am getting the following error message
Property id is not allowed.[6, 4] and this is under tasks.json
After loading and installing VS Code, gcc, and C extensions, does one just exit the terminal or is one supposed to save the terminal? If I don't save, what are the consequences?
Excuse me
Do I have to do this every time I want to run the created program? Is there an easier way to run it?
Thanks for this video. I running chrome os flex and I did the steps that were in the video. When I'm trying to run the executable, it is throwing permission denied error. Any idea?
thank you!
hey plz tell me if we have to do this same as always before start using visual code or just for onr time cz yesterday it woks but now i have to do the same thing with terminal is it compulsory to on terminal frst and then use visual codee
bro thank you. so much
You're welcome! Happy to help!
I'm on the step where I have to type "sudo apt-get upgrade" and there isnt a question that for the y/n it just gets completed with. At the end where I try testing its it says "-bash: gcc: command not found" can anyone help?!?!
Thank you very much 👍👍👍👍👍👍
You are welcome!
why " doesn`t appear when i'm coding? (i'm on chromebook)
quotation marks
The type is too tiny to see, other than that complaint, your video is very helpful. Thank you sincerely.
I'm interested in learning c++. Do I read c++ tutorials or visual studio code tutorials??😓🤯 Do c++ tutorials cross over to visual studio code,?
Visual Studio Code is just an editor. You can edit multiple different languages in it so learn C++ and write it in VS Code. It's a lot easier to do on Windows but this will work if its your only option.
chromebook are so underrated - i've been using mine for web dev but getting into C/C++ now - thanks for the vid it's great
Thank you
In c language I don't get excute this no directly file
Can you make a video about python?
can i install linux in hp chromebook 14 ak039wm
I have 4gb ram 2ghz dual core proc will it lag ?
Thanx bro
You're welcome!
thank
thank you so much!!!!!!!!!!!