Installing Visual Studio on Linux
Every programmer need to have a convenient application in which it will dial and edit source code. Visual Studio Code is one of the best solutions distributed as a Windows and operating systems on Linux kernel. The installation of the mentioned editor can be done by different methods, each of which will be optimal for a certain class of users. Let’s now focus on this procedure and will deal with all the actions as detailed as possible.
Unfortunately, the IDE is called Visual Studio is only available for PCs running Windows. It should be note that in this article we show you how to download the source code editor the Visual Studio Code is one of the solutions in the range of VS.
Install the Visual Studio Code in Linux
Of course, the distributions written on the Linux kernel, quite a lot. Now, however, very popular OS, which are based on Debian or Ubuntu. It is on such platforms that we want to pay attention, taking, for clarity, Ubuntu 18.04. The owners of other distributions, we will also advise you how best to install, but let’s start in order.
Method 1: Using repositories through the console
Microsoft is actively monitoring its official repositories. The latest versions of the programs laid out there quickly and users can download them without any problems to install on your computer. As for Visual Studio Code, we should consider using two different repositories. Interaction with the first as follows:






However, not every user is a suitable method of installation in the repository, so we advise to find an alternative that is not considered difficult.







Method 2: Download the official DEB package
Not all users sometimes it is convenient to operate via a console or may arise some difficulty with commands. In addition, sometimes the computer does not have Internet connection. In these cases, the aid comes the official DEB package, which you can pre-load on the carrier and on your PC to install the VS Code.
Download DEB package of Visual Studio Code





If there was a need to add updates to the software, open the console and in turn enter the following command:
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install code
As for users using the distributions developed based on RHEL, Fedora or CentOS, you should use the following lines to perform the installation of the program.
sudo rpm –import https://packages.microsoft.com/keys/microsoft.asc
sudo sh-c ‘echo -e “[code]name=Visual Studio Codenbaseurl=https://packages.microsoft.com/yumrepos/vscodenenabled=1ngpgcheck=1ngpgkey=https://packages.microsoft.com/keys/microsoft.asc” > /etc/yum.repos.d/vscode.repo’
Upgrading packages is done by specifying a dnf check-updateand then sudo dnf install code.
There are holders and OS on openSUSE and SLE. The code here is slightly different:
sudo rpm –import https://packages.microsoft.com/keys/microsoft.asc
sudo sh-c ‘echo -e “[code]name=Visual Studio Codenbaseurl=https://packages.microsoft.com/yumrepos/vscodenenabled=1ntype=rpm-mdngpgcheck=1ngpgkey=https://packages.microsoft.com/keys/microsoft.asc” > /etc/zypp/repos.d/vscode.repo’
The same update is made through the sequential activation sudo zypper refresh and sudo zypper install code
Now you are familiar with methods of installing Visual Studio Code on different distributions of the Linux kernel. If you encounter any problems or malfunctions, be sure to first read the text of the error, examine the official documentation of the operating system, and also leave questions in the comments.