VS Code is a very advanced, featured, and open-source code editor. This is developed by Microsoft for Windows, MAC, and Linux. This provides amazing features which makes it different from the other editors. The VS code provides debugging, syntax highlighting, intelligent code completion, snippet, code refactoring, and the embedded git. The VS Code comes with various extension package. You can install the extensions according to your needs. If you are a windows user, then you can easily download visual studio code from its official website. But, in this post, I will show you how you can install VS Code in Ubuntu 20.04. Here, we will opt for visual studio code for ubuntu. Then will install and configure it for the development. So, let’s begin it.
Prerequisites
So, here before you proceed to install VS code, I am assuming you are ready with the below requirements.
- Ubuntu 20.04.2 LTS (As an Operating System)
- An Ubuntu user with Sudo Privileges
- A terminal and command-line access
Here, to install VS Code in Ubuntu, there are two ways.
Install VS Code by Installer in Ubuntu 20.04
The first way is to download Visual Studio code for Ubuntu. So, you have to download the .deb file from its official site. The .deb file is available for the Linux OS.
![Official Download Page of VS Code](https://i0.wp.com/programmingfields.com/wp-content/uploads/2021/04/Screenshot-from-2021-04-02-07-58-30.png?resize=1019%2C561&ssl=1)
In the download page, you will have the VS code for the different operating system. So, just download the .deb file. After downloading, just right click on that and open with software install.
![Install VS Code Using Installer in Ubuntu](https://i0.wp.com/programmingfields.com/wp-content/uploads/2021/04/Screenshot-2021-04-02-080510.png?resize=720%2C263&ssl=1)
It will start installing the VS Code.
Create MySQL User And Grant Privileges in Ubuntu 20.04
Install VS Code by Terminal
To install VS code by using the terminal, firstly, open the terminal and firstly, update the initial packages. To check the available packages updates just hit the below command.
sudo apt update
The above command will check the available updates.
![Available Updates in Ubuntu to install vs code](https://i0.wp.com/programmingfields.com/wp-content/uploads/2021/04/Screenshot-from-2021-04-02-07-52-44.png?resize=728%2C315&ssl=1)
You can upgrade the available packages by hitting the below command.
sudo apt upgrade
Once the upgrade completed, we will add the repository to install vscode on ubuntu. So, let’s move to the next step.
How to Install Composer For PHP in Ubuntu 20.04 LTS
Add VS Code Repository Package in Ubuntu
In this step, you will have to add the package repository of the VS code. This is the source package that will add the necessary dependency to get install the VS code.
sudo apt install software-properties-common apt-transport-https wget
![Add Package Repository For Visual Studio Code](https://i0.wp.com/programmingfields.com/wp-content/uploads/2021/04/Screenshot-from-2021-04-02-08-44-25.png?resize=725%2C417&ssl=1)
After adding the above package, you will need to add the Microsoft GPG key using the wget command.
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
Once the key has been added, the VS code needs to be enabled by hitting the below command.
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
The above command will enable the repository to get active and install.
![Enable the Visual Studio Code Repository](https://i0.wp.com/programmingfields.com/wp-content/uploads/2021/04/Screenshot-from-2021-04-02-08-42-06.png?resize=730%2C419&ssl=1)
After enabling the apt repository for VS code, you are good to go with the installation.
How to Install LAMP Stack in Ubuntu 20.04 LTS
Install VSCode On Ubuntu
It needs to re-check the updates after adding the VS code repository.
sudo apt update
Once it is done, lastly, hit the below command to start installing the visual studio code in Ubuntu.
sudo apt install code
![Install VS Code on Ubuntu](https://i0.wp.com/programmingfields.com/wp-content/uploads/2021/04/Screenshot-from-2021-04-02-08-40-14.png?resize=734%2C441&ssl=1)
Once the installation is finished, you are ready to use the Visual Studio Code editor.
How to Install and Configure XAMPP For Windows and Linux
Start and Configure Visual Studio
Just open the Visual Studio code editor. You will have the welcome screen as showing below.
![Visual Studio Code Editor - Welcome Screen](https://i0.wp.com/programmingfields.com/wp-content/uploads/2021/04/Screenshot-from-2021-04-02-08-47-16.png?resize=1024%2C724&ssl=1)
You can install the list of extensions available for different programming language. Suppose, I am trying to search extension for the Python. Here, in the result, you can see, we have the lot of extensions available for the Python.
![Install Extensions in Visual Studio Code](https://i0.wp.com/programmingfields.com/wp-content/uploads/2021/04/Screenshot-from-2021-04-02-08-50-03.png?resize=984%2C738&ssl=1)
Therefore, you can install it as per your requirement and use.
Conclusion
I hope guys, this post will help to install and setup the advanced code editor that is Visual Studio code in your Ubuntu system. I have shown you the two different ways to install VS code. You can prefer any one that you feel easy. The VS code editor provides the lot of extensions for the different programming language. You can install it and start development.
Leave a Reply