How to Install Visual Studio Code in Ubuntu
Visual Studio Code is a powerful and popular code editor that has gained tremendous popularity since its release. It is a light-weight editor developed by Microsoft that runs on Windows, Linux, and macOS. In this article, we will be discussing how to install Visual Studio Code in Ubuntu.
Step 1: Update Your System
Before beginning with the installation process, it is important to update your Ubuntu system to ensure that you have the latest version of the packages.
sudo apt update
sudo apt upgrade
Step 2: Install Dependencies
To be able to install Visual Studio Code, we need to install some dependencies first. These dependencies are necessary for its proper functioning.
sudo apt install curl gpg
Step 3: Download and Install Visual Studio Code
Use the following commands to download and install Visual Studio Code on your Ubuntu machine:
curl https://packages.microsoft.com/keys/microsoft.asc | gpg –dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c ‘echo “deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main” > /etc/apt/sources.list.d/vscode.list’
sudo apt update
sudo apt install code
Step 4: Launch Visual Studio Code
Once the installation is complete, you can launch Visual Studio Code from the Ubuntu terminal using the following command:
code
Alternatively, you can also launch Visual Studio Code using the GUI by searching for it in the applications menu.