Welcome to ubuntu Subsystem installation guide. This guide walks you through ubuntu terminal installation, enabling Windows Subsystem for Linux (WSL) and running Visual Studio Code in WSL using Remote - WSL extension.
You need Visual Studio Code installed.
You can install Linux distributions from the Microsoft Store. You can use the store app, or search for a Linux distro in the Windows search bar. Choose the Linux distribution you want to install (for example Ubuntu) and follow the prompts.
Select Install.
And when done, select Launch to get started. This will open a Linux terminal and complete the installation. You’ll need to create a user ID and password since you are setting up a full Linux instance. You are now running Linux on Windows.
The Remote - WSL extension enables you to run Visual Studio Code within the Windows Subsystem for Linux (WSL).
Windows Subsystem for Linux (WSL) is an optional feature on Windows 10. You can enable it through the Windows Features dialog or PowerShell.
In the Windows search bar, type ‘features’ to bring up the Turn Windows Features on and off dialog. Scroll down and check Windows Subsystem for Linux.
Select OK and you will be prompted to restart Windows.
Finally, you should choose the Ubuntu (WSL) option from the Visual Studio Code terminal options.
Congratulations, you’ve successfully completed this guide!