The Visual Studio Code is freely available for most modern operating systems like Windows, Linux (RPM and Debian installations are also available), and macOS. This tutorial will help you to install Visual Studio Code on Ubuntu 22.04 LTS Linux system using Apt package manager and using snap package.

Prerequisites

In order to install VS Code, you must have sudo privileges or root account access to the Ubuntu 22.04 system.

Installing Visual Studio Code on Ubuntu

Visual Studio Code is available as the Snap package as well official apt repository with the Debian package. Choose one of the below methods as per your choice.

Method 1: Install VS Code Using Apt Repository

Follow the below steps to install Visual Studio Code on Ubuntu from the official Apt repository. The above steps will complete the VS Code installation on a Ubuntu system. Rather than the above steps, you can also install VS Code from Snapcraft. The installation instructions are below:

Method 2: Install VS Code Using Snap Package

The Ubuntu 22.04 already have installed Snapd service. You can directly install the Visual Studio Code on a Ubuntu system with the below-mentioned command: The above command will download the latest VS Code snap package and install it on your system. Once the installation is completed successfully, you will see the following output. That’s it. The Visual Studio Code snap package has been successfully installed on your system.

Using the Visual Studio Code

Now, The Visual Studio Code has been installed on your Ubuntu 22.04 system. To launch the application type “code” in the search application and click on it. The Visual Studio Code editor is ready to use. The Visual Studio Code provides you with a large number of extensions that extends functionality like C#, Python, JavaScript, Google Chrome, etc. Install the required extensions to enhance your working experience with the Visual Studio Code.

Upgrade Visual Studio Code on Ubuntu

The VS Code team is actively developing the application. So you will receive security packages, features, or a full software upgrade from time to time. It’s recommended to upgrade VS Code:

If you have installed VS Code from the Apt repository, execute the following commands:sudo apt update && sudo apt install code Snapd users not to worry about manual upgrades. The service automatically upgrades the packages in the background.

Delete (Remove) Visual Studio Code

The users who have installed VS Code from Apt repository can remove packages with the following commands:sudo apt remove –purge code sudo apt auto-remove The snap package can be removed with the following command:sudo snap remove code

Conclusion

In this tutorial, you have learned two steps for the installation of Visual Studio Code on a Ubuntu 22.04 LTS Linux system.

How to Install Visual Studio Code on Ubuntu 22 04   TecAdmin - 74How to Install Visual Studio Code on Ubuntu 22 04   TecAdmin - 90How to Install Visual Studio Code on Ubuntu 22 04   TecAdmin - 60