How to install Visual Studio code on Ubuntu 20.04

Visual Studio Code is a well-known, powerful open source code editor and cross-platform developed by Microsoft. It gives developers tons of features and a hassle-free way to write and manage code.

Visual Studio Code is a streamlined code editor that provides various operations such as debugging, syntax highlighting, version control, and code completion.

You can use the various properties of the editor, such as: B. Outline and code snippets, insert, expand, generate and reduce various code blocks.

Many people have confused Visual Studio with Visual Studio Code. Visual Studio is available exclusively on Windows for Windows application development, while Visual Studio Code is a simple code editor that is available for many platforms.

Now we’re going to review some ways to get Visual Studio code on Ubuntu 20.04. Choose the most suitable one at will.

1- Install Visual Studio Code on Ubuntu 20.04 (LTS) and 20.10 with GUI:

To install Visual Studio Code using the GUI, first open the Software Center on Ubuntu.

You will get a Software Center window.

Now search for “Visual Studio Code”:

Select “Visual Studio Code”, a window with the “Install” button will appear; click on it to start the process.

2- Install Visual Studio Code on Ubuntu 20.04 (LTS) and 20.10 with Terminal:

In this method, we’re going to download and install Visual Studio Code with Snap. Snap packages contain binary dependencies that are safe and easy to update.

To start the process, open your terminal and enter the following command:

$ sudo snap To install –classic code

Another way to install VS code is to use the terminal via the “apt” command.

There are a few steps to follow:

Step 1: First we need to install dependencies using the below mentioned command.

$ sudo suitable To install Software-properties-common apt-transport-https wget

Step 2: The next step is to import the specified Microsoft GPG key on the terminal using the wget command:

$ wget –Qhttps://Packages.microsoft.com/key/microsoft.asc -Ö- | sudo add apt key

Step 3: As the process continues, enter the following command to enable the VS Code repository:

$ sudo add-apt-repository “deb”[arch=amd64] https://Packages.microsoft.com/repos/vscode Stable Main “

As you can see, the repository is added. Now the final step for this process is to enter the Visual Studio Code package installation command mentioned below:

$ sudo suitable To install code

Visual Studio Code will be downloaded and installed on your device. It can be viewed in applications. Open it:

To uninstall Visual Studio Code on Ubuntu 20.04 (LTS) and 20.10:

If you installed it through the GUI, please follow the steps below to remove it:

  • Open the Software Center and click the Installed tab.
  • Find Visual Studio Code Application.
  • Click the Remove button.

If you installed Visual Studio Code from the Terminal from Snap Packages.
Use the command to uninstall it:

$ sudo Remove code click into place

$ sudo remove apt code

diploma

You saw a brief introduction to installing Visual Studio Code using various methods through the GUI and Terminal. We also learned how to uninstall it in a number of different ways. Visual Studio Code is a fast, reliable and efficient code editor that supports various programming languages ​​and loads of plugins to increase productivity.

Related Posts