WSL2 Integration with Visual Studio Code - 2021

Опубликовано: 28 Июль 2026
на канале: YASKAD
4,553
91

We'll show you step by step how to install WSL2 and integrate it into our Visual Studio Code development tool.

WSL2 is the second version of the wonderful Windows Subsystem for Linux created by Microsoft a few years ago. The idea of ​​​​taking advantage of the benefits that Linux offers us on our PCs is very appealing.

⏱️TIMESTAMPS⏱️
00:00 - Intro
01:28 - Warning
01:51 - Requirements
02:14 - Installing Windows Terminal
02:58 - PowerShell instructions to enable WSL2
04:44 - Installing Ubuntu 20.04
05:27 - Installing and configuring Visual Studio Code
07:07 - Starting Visual Studio Code from our Ubuntu desktop
08:29 - Configuring Python within Visual Studio Code
09:28 - Testing Live Server for web development
10:17 - Conclusion

Steps to integrate WSL2 with VSC
*************************************************
1-Make sure you have a version higher than 18363
2-Make sure your system supports virtualization
3-(OPTIONAL) Install the new terminal application - Windows Terminal https://github.com/microsoft/terminal
4-Run from Power Shell: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
5-And then, also from Power Shell: dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
6-Reboot
7-Update the kernel: https://wslstorestorage.blob.core.win...
8-Run in Power Shell: wsl --set-default-version 2
9-Install Ubuntu 20.04 from the store: https://www.microsoft.com/es-ar/p/ubu...
10- Install Visual Studio Code
11- Restart
12- Run VSC. This will install the necessary extensions to integrate with WSL2.
13- Go to Ubuntu and run code in the project folder. The necessary packages for integration with VSC will be installed in Ubuntu.
14- Remember to install the extensions you will use when running applications from WSL2 within Visual Studio Code.

⭐ Subscribe so you don't miss our content: http://ow.ly/HCgK50Ersmj

🎼 ROYALTY FREE MUSIC from YouTube Audio Library