Introduction
In this article, you will learn how we can install Visual Studio Code on WSL2.
To learn to install WSL2 on Windows 11, visit.
Visual Studio Code
Microsoft's Visual Studio Code is a source code editor available for Windows, Linux, and macOS. Support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and integrated Git are among the features. Users may customize the theme, keyboard shortcuts, and preferences, as well as install extensions that offer further functionality.
Install VS Code on WSL2
There are separate ways to install VS Code on different Linux distributions. Currently, we can install the following distros on WSL
- Ubuntu
- Debian GNU/Linux
- Kali
- openSUSE Leap 42
- SUSE Linux Enterprise Server 12 (SLES)
1. Install VSCode on Ubuntu or Debian GNU/Linux or Kali
We have a common command mechanism to install VS Code on Ubuntu, Debian, and Kali based distributions.
Note: If wget is not installed, please install it using the command
After that execute the following command, to install the VS code
2. Install VSCode on openSUSE or SLES
We have a common command mechanism to install VS Code on openSUSE and SLES.
After that execute the following command to install the VS Code
After Installation
Once you are done installing, you will get VS Code app listed on your Windows machine. Click the VS Code app for WSL, to launch the application.
Conclusion
In this article, we discussed how one can install VS Code on WSL.
To learn about basic Linux commands, visit.