Using C++ and WSL in VS code

preview_player
Показать описание
Using C++ and WSL in VS code
Рекомендации по теме
Комментарии
Автор

Thanks a lot for the simple and quick tutorial. Please consider adding the commands to the description. Overall the video helped me out. Cheers

mouninischal
Автор

From the Article Dec 7, 2021, just use the command "wsl",

wsl --install

To update from WSL 1 to WSL 2 on previously installed Linux distributions, use the command: wsl --set-version <distro name> 2 replacing <distro name> with the name of the Linux distribution that you want to update. For example, wsl --set-version Ubuntu-20.04 2 will set your Ubuntu 20.04 distribution to use WSL 2.

kyulee
Автор

after running build task and then "./helloworld " command in bash , "its showing no such file or directory " error . please help me to resolve this...

gunjangupta
Автор

dism.exe /online /enable-feature /all /norestart
wsl --set-default-version 2

kyulee