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

КОМЕНТАРІ • 57

  • @atreebanerjee
    @atreebanerjee 3 роки тому +1

    I am back again........ remember me..... told you that you are the man with no haters

  • @rickydonne802
    @rickydonne802 3 роки тому +7

    Hey man. I just followed your steps on my arm64 chromebook and it works. Thanks.

  • @AdityaSingh-hl7qi
    @AdityaSingh-hl7qi Рік тому

    you are my god. i wasted two hours trying to figure it out. and you solved my problem in a jiffy
    tysm.

  • @CorporalDanLives
    @CorporalDanLives Рік тому

    Thanks a bunch, I was stuck from previous videos and your info on how to configure default build task unstucked me!

  • @edwarddiaz853
    @edwarddiaz853 2 роки тому +7

    Holy cow i've spent soo many days trying to get this right. Your videos are awsome!

  • @emanplayz4295
    @emanplayz4295 3 роки тому +2

    yooo you helped me out soo much im sharing this too other chromebook users

  • @Charlie-Cat.
    @Charlie-Cat. 4 роки тому

    Just in time to see Lu in action. What a great way to enjoy my Saturday night with you in action bro. 8^)
    Anthony...

    • @lustechsource5197
      @lustechsource5197  4 роки тому

      Always good to hear from you Anthony! Hope you are having a great night.

  • @sneakysnitch7885
    @sneakysnitch7885 Рік тому

    thank you so much, i wouldnt have EVER gotten it without this haha

  • @mspence5555
    @mspence5555 2 роки тому +1

    Sweet! Got it working, thank you.

  • @nadiasumaiya8481
    @nadiasumaiya8481 3 роки тому +4

    Just loved the way you described everything.

  • @amaris4753
    @amaris4753 3 роки тому +4

    This really helped.Thank you😊

  • @michaelerdstein5787
    @michaelerdstein5787 3 роки тому +2

    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.

  • @joloeb95
    @joloeb95 Рік тому

    Very clear -- thanks so much.

  • @DevlogBill
    @DevlogBill Рік тому

    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!

  • @enchandransh
    @enchandransh Рік тому

    Unable to write file '/home/.vscode/tasks.json' (NoPermissions (FileSystemError): Error: EACCES: permission denied, mkdir '/home/.vscode')

  • @marqimoth6987
    @marqimoth6987 2 роки тому +2

    problem: it doesn't show the correct things at 5:07

  • @daniellopes48
    @daniellopes48 11 місяців тому

    Can i just run "run code"? When i click on the Button "run code" the program didn't run.

  • @Magnus_Loov
    @Magnus_Loov Рік тому

    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?

  • @ernestsamba9464
    @ernestsamba9464 Рік тому

    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

  • @Magnus_Loov
    @Magnus_Loov Рік тому

    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?

  • @zacharymanuel1649
    @zacharymanuel1649 4 роки тому +3

    Thank you :) 🙏

  • @diptangshudey5370
    @diptangshudey5370 4 роки тому +1

    Which software are you using for the screen recording?

    • @lustechsource5197
      @lustechsource5197  4 роки тому

      I connect my Chromebook to my PC using an El Gato GameCapture HD.

  • @sumitparya
    @sumitparya 2 роки тому

    Thanks a lot. It worked 😊

  • @ahmedfardos
    @ahmedfardos 2 роки тому

    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

  • @d.jensen5153
    @d.jensen5153 2 роки тому

    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?

  • @anthonygonzalez4130
    @anthonygonzalez4130 2 роки тому

    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?

  • @nagarajupeduri9302
    @nagarajupeduri9302 Рік тому

    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!

  • @hussnainahmad5254
    @hussnainahmad5254 2 роки тому

    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

  • @andyroo995
    @andyroo995 3 роки тому +1

    bro thank you. so much

  • @josephdavila1966
    @josephdavila1966 3 роки тому

    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?!?!

  • @AARONALLENNGC
    @AARONALLENNGC 3 роки тому +1

    Thank you very much 👍👍👍👍👍👍

  • @felipes.v8613
    @felipes.v8613 Рік тому

    why " doesn`t appear when i'm coding? (i'm on chromebook)

  • @stacyhackney6100
    @stacyhackney6100 2 роки тому +1

    The type is too tiny to see, other than that complaint, your video is very helpful. Thank you sincerely.

  • @coquibunny8797
    @coquibunny8797 2 роки тому

    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,?

    • @Paynege
      @Paynege 2 роки тому

      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.

  • @tovtovtovtov
    @tovtovtovtov Рік тому

    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

  • @ميساءطه-م1ص
    @ميساءطه-م1ص 3 місяці тому

    Thank you

  • @alishami4228
    @alishami4228 6 місяців тому

    In c language I don't get excute this no directly file

  • @icy_interest2253
    @icy_interest2253 3 роки тому +1

    Can you make a video about python?

  • @lyreneangellicuanan2800
    @lyreneangellicuanan2800 2 роки тому

    can i install linux in hp chromebook 14 ak039wm

  • @yshubham
    @yshubham 2 роки тому

    I have 4gb ram 2ghz dual core proc will it lag ?

  • @j.nikhilsudhan1301
    @j.nikhilsudhan1301 4 роки тому +1

    Thanx bro

  • @samuelbrightowolabi8312
    @samuelbrightowolabi8312 3 роки тому

    thank

  • @piyushverma1303
    @piyushverma1303 2 роки тому

    thank you so much!!!!!!!!!!!