How To Run Linux Code on Windows with WSL 2 & VS Code

Опубликовано: 16 Январь 2022
на канале: TypeScript with Benny Code
167,078
3.4k

With the Windows Subsystem for Linux (WSL) you can install your favorite Linux distribution and connect it with Visual Studio Code to run Linux-first projects on Windows.

My FREE programming apps:
https://apps.apple.com/app/id659282498
https://play.google.com/store/apps/de...

My FREE TypeScript Course:
https://typescript.tv/

Timeline:
00:00 - Intro
00:39 - When to use the Windows Subsystem for Linux (WSL)?
01:42 - What is the Windows Subsystem for Linux (WSL)?
02:17 - Installing WSL 2
02:47 - Installing Ubuntu on Windows
03:47 - Running Ubuntu on Windows 10
04:13 - Accessing files on Linux from Windows
05:14 - Accessing files on Windows from Linux
06:08 - Connect Visual Studio Code with Ubuntu (Remote WSL)
07:37 - Share credentials between Windows and Linux
10:07 - Build Linux-first project on Windows
11:05 - Use Docker with WSL 2
13:13 - Closing Note

Follow Us:
🌐 https://typescript.tv/​
🐦   / typescripttv  
📺    / typescripttv​  

Commands:
➜ Enter "wsl --install" in your PowerShell to install the Windows Subsystem for Linux
➜ Enter "wsl --status" in your PowerShell to check your installed WSL version
➜ Enter "\\wsl$\" in your File Explorer to see your Linux drives

Resources:
➜ Windows Subsystem for Linux Documentation: https://docs.microsoft.com/windows/wsl/
➜ Docker Desktop with WSL 2: https://docs.docker.com/desktop/windo...
➜ Ubuntu on WSL: https://ubuntu.com/wsl
➜ Visual Studio Code Remote - WSL: https://marketplace.visualstudio.com/...
➜ Enable Hardware-assisted virtualization: https://typescript.tv/hands-on/docker...

Hashtags:
#TypeScript #Linux #WSL #Windows #Ubuntu