Using WSL, Ubuntu, and VS Code together is a popular setup for Windows users who want to develop software in a Linux environment. Here are the basic steps to get started:
Install WSL: Follow the instructions provided by Microsoft here: https://docs.microsoft.com/en-us/windows/wsl/install-win10
Check installation :
wsl --version
In case Ubuntu not installed :
Install a Linux distribution: Open the Microsoft Store app on your Windows machine, search for "Ubuntu", and select the version you want to install (e.g., Ubuntu 20.04 LTS). Click the "Install" button to begin the installation process.Install VS Code: Download and install VS Code from the official website:
https://code.visualstudio.com/
Install the Remote - WSL extension: Open VS Code and click the Extensions icon on the left-hand side. Search for "Remote - WSL" and click the "Install" button.
Open a WSL terminal in VS Code: Press
Ctrl + Shift + `
select it from the dropdown menu in the terminal window.
which opens a new terminal window. From there,Create or open a project: Use VS Code to create or open a project in the Ubuntu file system. You can use the file explorer in VS Code to navigate the Ubuntu file system and edit files as you would in a regular Windows environment.
If you find a problem in these steps please add it in comments to help each other: