VS Code WSL (C++) - Create Project, Compile, Run

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 30

  • @pranavdesai-xv9qw
    @pranavdesai-xv9qw Год назад

    00:05 How to use VS Code on Windows using Windows Subsystem for Linux (WSL)
    01:20 Creating a project in VS Code using WSL
    02:31 Connect to Windows Subsystem for Linux (WSL) and open a folder in WSL
    03:48 Creating a project folder and writing a simple C++ program using VS Code WSL
    05:08 Install g++ compiler using sudo apt-get install g++ command.
    06:21 Set all warnings to errors and display them
    07:35 Building and running C++ code in VS Code with WSL
    08:45 Configuring and running C++ code in VS Code WSL

  • @x1Wolf101x
    @x1Wolf101x 9 месяцев назад +5

    Does this still work? I've tried to go through the steps in the video but VSCode does not let me open a folder in WSL so I am stuck on that step. It also isn't letting me use commands in the terminal?

    • @theos5187
      @theos5187 2 месяца назад

      They deleted it from the WSL commands, but its still in the general command palette.

  • @MarnisAntonites
    @MarnisAntonites 6 месяцев назад

    DR BRIAN, YOU HAVE SAVED ME, THANK YOU.

  • @SreesaSarma
    @SreesaSarma 11 месяцев назад

    Thank you, very helpful!!

  • @unextazy
    @unextazy Год назад

    Thank you, it helps me understand, why my code don`t compile on Ubuntu under WSL. Very concise and helpful:).

  • @pabloqp7929
    @pabloqp7929 Год назад

    Good vid, pretty insightful, thanks for the upload, earned my sub!

  • @KK-ib5nh
    @KK-ib5nh Год назад +2

    I have install the extension and done all the steps but i am not getting the green button of wsl in bottom

  • @bantering4711
    @bantering4711 2 года назад

    Thanks Brian! You saved me and friend for one of our classes. We would have died if we didn't see your video

  • @andrevshimself
    @andrevshimself 6 дней назад

    Thank you !!!!!!!

  • @aliiiccyee5736
    @aliiiccyee5736 2 года назад +3

    hi, may I ask how to solve the terminal, because at terminal-> default configuration, mine doesn't prompt me the list of g++ build options, it only showed me 3 options that looked something like this: "C/C++: cl.exe build active file"
    I already have all the extensions installed

  • @ChandanAkbarpuria
    @ChandanAkbarpuria 7 дней назад

    my wsl vs code window changes to normal vs code window when my I choose Any local folder .
    please help

  • @personxy7443
    @personxy7443 2 месяца назад

    sir,in wsl shell:I run "code cproject",why it just open in windows rather than in wsl?how open cproject in wsl directly?

  • @jkepps
    @jkepps 2 года назад +3

    Thanks for the video. I followed your instructions, however I don't have g++ on my list of compilers. Just Gulp, Grunt and Jake tasks are listed. What do I need to do to get the g++ compiler to show up? I did install WSL and g++ in Ubuntu. Thanks in advance.

    • @jkepps
      @jkepps 2 года назад

      Never mind. It seems that when I installed the extensions, i must not of had the remote connection to Ubuntu at the time. When I did make a connection later, I was notified that the extensions needed to be installed in Ubuntu. Once I did that, it fixed it.

    • @nehamenon8450
      @nehamenon8450 Год назад +1

      @@jkepps I am facing the same issue, could you detail how you fixed it? Thanks

    • @andysyu1954
      @andysyu1954 Год назад

      @@nehamenon8450 To extensions download C/C++, I solved by this.

    • @user-gy1jv2tg4p
      @user-gy1jv2tg4p Год назад

      did you fix it?@@nehamenon8450

  • @Р.Т-х7р
    @Р.Т-х7р 2 года назад

    Hey , good video ! I have one qustion , what operation system you maining ( Windows , linux , macos)?

  • @rufus9322
    @rufus9322 Год назад

    VS code: include file not found in browse. path.?

  • @BoskiJanusz
    @BoskiJanusz Год назад

    Thank you

  • @Igbon5
    @Igbon5 Год назад

    I made a directory in Windows and the rest worked out ok. Although why Run active file, under the terminal heading didn't work I suppose is another adventure in peculiarity.
    Anyhow, despite my frustration, thanks for the video, it was helpful.

  • @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.

  • @alirazi9198
    @alirazi9198 3 месяца назад

    thanks

  • @billyliu6811
    @billyliu6811 4 месяца назад

    Make sure to do a `sudo apt install gdb` and `sudo apt-get update` if you don't have gdb installed or else vscode will complain with an error

  • @sudhansumtripathy
    @sudhansumtripathy 2 года назад

    hi , how to remove the unwanted text form the output window, how to stop the vscode from generating an .exe file automatically,

    • @aliiiccyee5736
      @aliiiccyee5736 2 года назад

      hi, for unwanted excessive txts I guess u can just type clear.

  • @AX3904P
    @AX3904P Год назад

    i only had to download one thing to get visual to work in Microsoft, why is this so overly complicated ? its almost like they don't want people to switch to linux...

  • @mohamednaimi7076
    @mohamednaimi7076 2 года назад +1

    Thank you! Very helpful.