
Windows Subsystem for Linux (WSL) is an optional feature on Windows 10. The Remote Status bar item can quickly show you in which context VS Code is running (local or remote) and clicking on the item will bring up the WSL extension commands. With the WSL extension installed, you will see a new Status bar item at the far left. The WSL extension enables you to run Visual Studio Code within the Windows Subsystem for Linux (WSL). This tutorial walks you through enabling Windows Subsystem for Linux (WSL) and running Visual Studio Code in WSL using the WSL extension. Configure IntelliSense for cross-compiling.In the Activities search bar type “Visual Studio Code” and click on the icon to launch the application. When a new version is released you can update the Visual Studio Code package through your desktop standard Software Update tool or by running the following commands in your terminal: sudo apt update sudo apt upgrade Starting Visual Studio Code #

, install the Visual Studio Code package: sudo apt install code Import the Microsoft GPG key using the following wget commandĪnd enable the Visual Studio Code repository by typing: sudo add-apt-repository "deb stable main" : sudo apt update sudo apt install software-properties-common apt-transport-https wget Update the packages index and install the dependencies by running the following command as a user with sudo privileges Visual Studio Code is available from the official Microsoft Apt repositories. Whenever a new version is released, Visual Studio Code package will be automatically updated in the background. If you prefer using a GUI, open Ubuntu Software, search for “Visual Studio Code” and install the application: Visual Studio Code has been installed on your Ubuntu machine. To install the VS Code snap, open your terminal ( Ctrl+Alt+T) and run the following command: sudo snap install -classic code Snap packages can be installed from either the command-line or via the Ubuntu Software application. Unlike the standard deb packages, snaps have a larger disk footprint and longer application startup time. Snap packages are easy to upgrade and secure. Snaps are self-contained software packages that include the binary all dependencies needed to run the application. Visual Studio Code snap package is distributed and maintained by Microsoft.

Installing Visual Studio Code as a Snap Package #

Or as a deb package from Microsoft repositories.Ĭhoose the installation method that is most appropriate for your environment. VS Code can be installed as a snap package via the Snapcraft store This guide shows two ways of installing Visual Studio Code on Ubuntu 20.04. Visual Studio Code is cross-platform, available on Windows, Linux, and macOS. Install VS Code on Ubuntu - The Easiest Way in 2023
