How To Install Visual Studio Code on Ubuntu 20.04

Windows Articles

How To Configure Slave BIND DNS Server On Ubuntu 20.04

In our previous guide we covered the setup of Master(Primary) DNS Server. Here we'll learn that how to configure slave bind dns server on...

Install Fossil on Linux – An alternative to Git

Hello, friends. In this post, we will talk about a serious alternative to Git. In a few words, we'll show you how to install...

How to backup and restore BCD in Windows 10

Hi! Boot Configuration Data (BCD) is a set of data where the system boot information is stored. In addition, from there the operating systems...

How To Install and Configure Master BIND DNS Server On Ubuntu 20.04

Today we are going to learn that how to install and configure Master BIND DNS server on Ubuntu 20.04. As you all know that...

Diskpart is a very useful tool for managing storage in Windows 10.

Hello! Diskpart is an internal tool included in Windows systems that allows you to manage storage units. Indeed, it is possible to manage internal...

Today we are going to learn that how to install Visual Studio Code on Ubuntu 20.04. Visual Studio Code developed by the Microsoft to provide support on Windows, Linux and MacOS. It provides the facility of source-code editor with some available extensions by which you can change the style or customize it according to your needs. So, in this tutorial, we are going to install it on the new release of Ubuntu 20.04. Just follow the below steps for an easy installation.

Step 1: Update Your System

Firstly as usual we do, update the system to latest packages by the given command.

sudo apt update

Step 2: Enable HTTPS Access on Ubuntu 20.04

After updating the system install the HTTPS support for the apt package manager for attaining packages from the Microsoft & others. To install HTTPS support run the below command in your terminal.

sudo apt install -y curl apt-transport-https

Step 3: Add Visual Studio Code Repository On Ubuntu 20.04

Fire the listed command to get the Microsoft GPG key for installing visual studio code on Ubuntu 20.04.

curl -sSL https://packages.microsoft.com/keys/microsoft.asc -o microsoft.asc
sudo apt-key add microsoft.asc

And then add the repository of Visual Studio Code on Ubuntu 20.04 with the help of the following command.

echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"  | sudo tee /etc/apt/sources.list.d/vscode.list

After adding the repository go to the installation step.

Step 4: Installing Visual Studio Code on Ubuntu 20.04

To install the Visual Studio Code, hit the given command.

sudo apt update
sudo apt -y install code

Output:

sabi@Ubuntu:~$ sudo apt -y install code
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
acl apg colord-data gnome-control-center-faces
gnome-online-accounts hplip-data libcolord-gtk1 libcolorhug2
libgsound0 libgssdp-1.2-0 libgupnp-1.2-0 libgupnp-av-1.0-2
libgupnp-dlna-2.0-3 libieee1284-3 libimagequant0 libmediaart-2.0-0
librygel-core-2.6-2 librygel-db-2.6-2 librygel-renderer-2.6-2
librygel-server-2.6-2 libsane-common libsnmp-base libsodium23
libwebpmux3 mobile-broadband-provider-info network-manager-gnome
printer-driver-postscript-hp python3-macaroonbakery python3-nacl
python3-olefile python3-pexpect python3-pil python3-protobuf
python3-ptyprocess python3-pymacaroons python3-renderpm
python3-reportlab python3-reportlab-accel python3-rfc3339
python3-tz rygel
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
code
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 62.3 MB of archives.
After this operation, 265 MB of additional disk space will be used.
Get:1 https://packages.microsoft.com/repos/vscode stable/main amd64 code amd64 1.44.2-1587059832 [62.3 MB]
Fetched 62.3 MB in 1min 7s (927 kB/s)
Selecting previously unselected package code.
(Reading database … 164205 files and directories currently installed.
)
Preparing to unpack …/code_1.44.2-1587059832_amd64.deb …
Unpacking code (1.44.2-1587059832) …
Setting up code (1.44.2-1587059832) …
Processing triggers for mime-support (3.64ubuntu1) …
Processing triggers for gnome-menus (3.36.0-1ubuntu1) …
Processing triggers for desktop-file-utils (0.24-1ubuntu2) …

Step 5: Open Visual Studio Code

After installing the visual studio code, either you can open it from the terminal or by navigating to Activities.

Terminal:

code

GUI:

Navigate to Activities and search for Visual Studio Code as shown below.

How To Install Visual Studio Code on Ubuntu 20.04

Here’s the welcome screen of Visual Studio Code.

How To Install Visual Studio Code on Ubuntu 20.04

Step 6: Set Visual Studio Code as Default Editor on Ubuntu 20.04

Now, run the below command in your terminal to set the Visual Studio Code as your default editor on Ubuntu 20.04.

sudo update-alternatives --set editor /usr/bin/code

You can update to the latest version with following command.

sudo apt update
sudo apt upgrade code

So, this is how you can install Visual Studio Code on Ubuntu 20.04

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How To Configure Slave BIND DNS Server On Ubuntu 20.04

In our previous guide we covered the setup of Master(Primary) DNS Server. Here we'll learn that how to configure slave bind dns server on...

Install Fossil on Linux – An alternative to Git

Hello, friends. In this post, we will talk about a serious alternative to Git. In a few words, we'll show you how to install...

How to backup and restore BCD in Windows 10

Hi! Boot Configuration Data (BCD) is a set of data where the system boot information is stored. In addition, from there the operating systems...

How To Install and Configure Master BIND DNS Server On Ubuntu 20.04

Today we are going to learn that how to install and configure Master BIND DNS server on Ubuntu 20.04. As you all know that...

Diskpart is a very useful tool for managing storage in Windows 10.

Hello! Diskpart is an internal tool included in Windows systems that allows you to manage storage units. Indeed, it is possible to manage internal...
x