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

preview_player
Показать описание
Using VS Code under WSL (Windows Subsystem for Linux):
Рекомендации по теме
Комментарии
Автор

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

bantering
Автор

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

pabloqp
Автор

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

unextazy
Автор

DR BRIAN, YOU HAVE SAVED ME, THANK YOU.

nooeywi
Автор

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?

Wolf-tnsz
Автор

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

jhurslg
Автор

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.

zlobert
Автор

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

KK-ibnh
Автор

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

aliiiccyee
Автор

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
Автор

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.

Igbon
Автор

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

sudhansumtripathy
Автор

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

rufus
Автор

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

pranavdesai-xvqw
Автор

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

billyliu
Автор

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

AXP