In this article, we will have explained the necessary steps to install and configure Visual Studio Code on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with
sudo privileges. All the commands in this tutorial should be run as a non-root user.
Visual Studio Code is an open-source and cross-platform code editor developed by Microsoft. It includes support for debugging, embedded Git control and GitHub, syntax highlighting, intelligent code completion, snippets, and code refactoring. You can extend Visual Studio Code functionality using extensions.
Install Visual Studio Code on Ubuntu
Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.
sudo apt update sudo apt upgrade sudo apt install software-properties-common apt-transport-https wget
Step 2. Install Visual Studio Code on Ubuntu system.
First steps, import the Microsoft GPG key using the following
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
Type the following to enable the Visual Studio Code repository:
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
Once the repository enabled, use the apt command to install Visual Studio Code:
sudo apt update sudo apt install code
Step 4. Accessing Visual Studio Code.
Now Visual Studio Code is installed on your system. You can launch it using a terminal by typing
code or by clicking on the VS Code icon (
Activities -> Visual Studio Code).
That’s all you need to do to install the Visual Studio Code on Ubuntu 20.04 Focal Fossa. I hope you find this quick tip helpful. Your valuable comments/feedback are highly encouraged as it will be an asset to our write-up. Thanks for visiting LinuxTips Stay tuned for more interesting articles!!