Visual Studio Code is a modern and very comfortable integrated development environment from Microsoft is written in platform-based Electron and NodeJS. There’s a built in code debugger, support for version control with Git, syntax highlighting for many languages, code completion, an integrated terminal, support refactoring and snippets.
In this article we will discuss how to install Visual Studio Code on Ubuntu 18.04 or later. For this it is best to use the official repository from Microsoft. However, you can also use the snap package or the Ubuntu software center.
Install the Visual Studio Code on Ubuntu
To work the repository needs to install a few packages. To do this, run the command:
sudo apt install software-properties-common apt-transport-https wget
Then install the repository key:
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
And add the repository:
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
Then update package lists and install the VS Code:
sudo apt update
sudo apt install code
After the installation is complete you can start the program by running the command in the terminal code or through the main menu system:
The main program window will look like this:
In the left part of the window vertically arranged multiple tabs for orientation in the program interface. On the first tab, you work with projects and files. The second tab allows you to search for open projects. The third tab – the version control system. Fourth, the debugger, and the fifth installation of add-ons.
You can also install software using the package Manager of snap. To do this, run:
sudo install --classic snap code
And the program is in Ubuntu software center:
Uninstall Visual Studio Code in Ubuntu
To remove the program as you installed. If you install Visual Studio Code Ubuntu 18.04 made of Microsoft repository, for removal follow:
sudo apt purge code
You can then disable the repository using utility Programs and updates:
And if installed through the package Manager snap or the app center, then to delete it do this:
sudo remove snap code
Now you have successfully installed Ubuntu 18.04 VS Code and you can go to its settings, and then to programming. Next you need to configure the external environment, and also make the necessary additions. But this will be discussed in the following articles.