How To Run Linux Code on Windows with WSL 2 & VS Code |
|
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/details?id=com.welovecoding.app *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/β π¦ https://twitter.com/typescripttv πΊ https://youtube.com/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/windows/wsl/ β Ubuntu on WSL: https://ubuntu.com/wsl β Visual Studio Code Remote - WSL: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl β Enable Hardware-assisted virtualization: https://typescript.tv/hands-on/docker-desktop-hardware-assisted-virtualization/ Hashtags: #TypeScript #Linux #WSL #Windows #Ubuntu |