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 set up Apache password Authentication on Ubuntu 18.08?

On the internet, almost all the applications have some parts which should be protected with a...

How to set Automate Tasks on a Linux VPS Using Cron?

One of our Linux VPS customers faced an issue wherein his Virtual Machine’s system clock was...

How To Configure Redis Caching to Speed Up WordPress on Ubuntu 18.04?

Redis is an open-source in-memory data structure store. It can be used as a DB and cache. It...

How to Install NodeBB on a CentOS VPS?

NodeBB is an open source and powerful forum software based on the Node.js. It is very easy to...

How to Manage Linux VPS (SSD and Traditional) from VPS Management Portal?

We offer SolusVM VPS management portal with SSD Linux VPS and Ttraditional Linux VPS plans....