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:

  • Run the Terminal using Ctrl + Alt + T or use the corresponding icon in the menu.
  • Mount command sudo install --classic snap vscode to download and install VS from the official repository.
  • Authenticate the account by entering your password for root access.
  • Downloading files from a channel may take some time during this process do not turn off the console.
  • When the installation is complete you will receive a notification and can immediately start the program by typing the vscode.
  • Now you have an interaction with the graphical interface of interest to the editor. The menu was created by icon, which is also launched through VS.
  • 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.

  • Open “Terminal” and first, update the system library by typing sudo apt update.
  • Next step is to install dependencies using sudo apt install software-properties-common apt-transport-https wget.
  • Confirm adding new files by selecting the correct option.
  • Install the GPG key from Microsoft, which plays a role of encryption of electronic signatures using wget -q -O- | sudo apt-key add -.
  • Then finish inserting the string sudo add-apt-repository "deb [arch=amd64] stable main".
  • You only have to install the program itself by writing sudo apt install code.
  • Launch Visual Studio Code added to the system is therefore performed through the command code.
  • 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

  • Click the link above and download DEB package you need the program.
  • Open the folder where you booted, and start it.
  • Start the installation via “application Manager”.
  • Confirm your account by entering the password.
  • Upon installation, find the icon for starting the program via the menu item by searching.
  • 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

    sudo sh-c 'echo -e "[code]name=Visual Studio Codenbaseurl=" > /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

    sudo sh-c 'echo -e "[code]name=Visual Studio Codenbaseurl=" > /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.


    (Visited 75 times, 1 visits today)