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.
In this tutorial, we are going to show you how to install latest version of Visual Studio Code using the offical Code Repository on your CentOS 7 machine.
01. First, we need to import Microsoft GPG key with below command:
# sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
02. Create the below repo file to enable the Visual Studio Code repository.
# sudo vi /etc/yum.repos.d/vscode.repo
03. Add below content in
[code] name=Visual Studio Code baseurl=https://packages.microsoft.com/yumrepos/vscode enabled=1 gpgcheck=1 gpgkey=https://packages.microsoft.com/keys/microsoft.asc
04. Save and Exit the
05. Install the latest version of Visual studio code with below command.
# sudo yum install code
06. Once the Visual Studio Code is installed on your CentOS machine. You can open it from (
Applications -> Programming -> Visual Studio Code). Or you can launch it from the command line by typing
You have successfully installed Visual Studio Code on CentOS 7. Check out how to install Additional Components and customize your User and Workspace Settings.
You might want to check the following guides: