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

Поділитися
Вставка
  • Опубліковано 18 вер 2024

КОМЕНТАРІ • 28

  • @x1Wolf101x
    @x1Wolf101x 7 місяців тому +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 Місяць тому

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

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

  • @user-no4oe8yw3i
    @user-no4oe8yw3i 5 місяців тому

    DR BRIAN, YOU HAVE SAVED ME, THANK YOU.

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

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

  • @Р.Т-х7р
    @Р.Т-х7р 2 роки тому

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

  • @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 11 місяців тому

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

    • @user-gy1jv2tg4p
      @user-gy1jv2tg4p 11 місяців тому

      did you fix it?@@nehamenon8450

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

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

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

    Thank you! Very helpful.

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

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

  • @personxy7443
    @personxy7443 Місяць тому

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

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

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

  • @alirazi9198
    @alirazi9198 2 місяці тому

    thanks

  • @pranavdesai-xv9qw
    @pranavdesai-xv9qw 11 місяців тому

    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

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

    Thank you

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

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

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

  • @billyliu6811
    @billyliu6811 3 місяці тому

    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

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

  • @user-qv2sh6wm6j
    @user-qv2sh6wm6j 10 місяців тому

    Thank you, very helpful!!