How to Install Visual Studio Code on CentOS 7?

Visual Studio Code is a Microsoft Product and an open-source cross-platform code editor. It provides built-in debugging support, code completion, integrated terminal syntax highlighting, embedded Git control, code refactoring, and snippets.

Following are the steps to install Visual Studio Code on Centos.

  1. Import Microsoft GPG key with below command.

    # sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
    
  2. Create the below repo file to enable the Visual Studio Code repository.

    # sudo nano /etc/yum.repos.d/vscode.repo
  3. Add below content in vscode.repo

    [code]
    name=Visual Studio Code
    baseurl=https://packages.microsoft.com/yumrepos/vscode
    enabled=1
    gpgcheck=1
    gpgkey=https://packages.microsoft.com/keys/microsoft.asc
  4. Save and Exit the vscode.repo

  5. Install the latest version of Visual studio code with below command.

    # sudo yum install code
    

This is it. Visual Studio Code is installed on your Centos. You can open it from Applications -> Programming -> Visual Studio Code.

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to Install OpenJDK JAVA 11/8 on Ubuntu?

You can follow this tutorial to install JAVA OpenJDK in all the Ubuntu versions. Following are...

How to install NodeJS on Centos with cPanel?

NodeJS is an open-source and cross-platform server environment. It is a JavaScript runtime built...

How to Install LEMP Stack (Nginx, MariaDB, PHP7.2) on Ubuntu 18.04 LTS?

Nginx, MariaDB and PHP7.2 are called (LEMP). Following are the steps to install LEMP on Ubuntu...

How to install Virtualmin / Webmin control panel in Ubuntu 16/18?

Before installing Virtualmin/Webmin on Ubuntu 16. We need to make sure that our system is up to...

How to install Dotnet Core on Centos 7 ?

Dotnet Core is now available with the Linux OS. Following are the steps to install Dotnet Core on...