Microsoft’s Visual Studio Code is the IDE for both novice and professional software/application developers. It is very easy to use and no expensive resources are required to run this IDE. Also, organizing the project structure is very simple in VS CODE IDE.
Some people might tell you that Visual Studio Code is the most popular and powerful text editor, specially in the realm of web development. If you look at VSCode, it’s not a fully-fledged IDE but it is one of the most used IDE/text editors.
One of the reasons of its popularity is that it’s cross-platform, i.e., it runs on Windows, Mac and Linux.
I won’t start writing about its features and other things. So to install VS Code in Ubuntu, you can choose either of these two ways.
How to install Visual Studio Code on Ubuntu?
Before installing any software or application, create a habit of updating your system first.
Launch terminal (Ctrl+Alt+t) and run the following command.
sudo apt update
Now your system is ready to install VS code.
#1: Directly from Ubuntu Software or Snap packages
This is the easiest way to install software and applications in Ubuntu if that software package is listed in the Ubuntu software.
Go to Ubuntu software and search “visual studio code” (without quotes).

Then click on the Visual Studio Code package and click install. If it asks for password for authentication, fill it in and hit enter. That’s it, VS Code will be installed in your system.

In case snap packages are not listed in the software center, launch terminal and install VS Code using the following terminal command:
sudo snap install code --classic
It will install VS Code in your Linux system.
Also Read: Linux thriller- How and Why Linux came into existence.
#2: Install VS Code on Ubuntu using apt package manager in terminal
First of all update the system as mentioned above.
sudo apt update
Install required dependencies,
sudo apt install software-properties-common apt-transport-https
Import Microsoft’s GPG key using,
sudo wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
Update again and then install VS Code,
sudo apt update sudo apt install code
Also Read: Linux thriller- How and Why Linux came into existence.
#3 : Install Visual Studio Code on Ubuntu from .deb package
Step 1: Download the .deb file from the official website
Go to official website for downloading visual studio code and download the .deb file.
Also Read: Is Linux an operating system, a terminal or both?
Step 2: One way to install visual studio code on Ubuntu is to open the downloaded file with the software install

Other method of installing VS code is by using terminal:
In the terminal, navigate to the directory where the file has been downloaded using cd. In my case, the file is downloaded inside the Downloads directory.

After that, install Visual Studio Code using the following command in the terminal:
sudo dpkg -i code_1.54.3-1615806378_amd64.deb
The downloaded file name(in bold) can be different in your system, therefore copy the file name to install it properly.

These are the methods to install Visual Studio Code on Ubuntu. One of these two methods will definitely work and other methods are not recommended. If you’re unable to install VS Code in Ubuntu using these two methods, then there can be some error that you might have missed. If still you cannot install it, let us know in the comment section.
Share ideas and suggestions in the comments.