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.
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.
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.
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
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.
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
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.
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.
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