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.

Related Articles

What is IP forwarding in Linux? How to enable IP forwarding?

IP forwarding helps you to set up the OS to work as a router. You can set IP forwarding when you...

How to Disable SELinux on CentOS?

SELinux called Security-Enhanced Linux is a security module of Linux kernel which provides...

How to install Google Chrome on Ubuntu 18.04 using the Command Line?

Following are the steps to install Google Chrome using Command-Line. Edit the source.list file...

How to add remote MySQL connection in linux?

Please refer to the following 3 steps to add a remote MySQL connection in Linux. Edit MySQL...

How to create users and groups in CentOS7?

Once the Linux system is configured, adding and removing users is one of the most basic tasks...

  • 0 Users Found This Useful

Was this answer helpful?