

sudo rpm -import Īfter importing the GPG key, Let’s use commands to install Visual Studio Code on your RHEL-based system. Step 2 – Install Visual Studio CodeĭNF package manager will automatically manage the gpg key for you, but you can also Import the package signing GPG key on your system using the following command. Press CTRL+O to save content and CTRL+X to exit from the editor. Let’s create a new file /etc//vscode.repo and edit in your favorite text editor. The same repository can be used for Fedora systems to use with DNF. Visual Studio Code provides an official yum repository for the installation of packages on a Yum-supported system.


Remember that Visual Studio Code is a different application than Microsoft Visual Studio IDE. This tutorial will help you to install Visual Studio Code on CentOS, RHEL, Fedora, and its derivatives systems. It also has extensions for multiple other programming languages like C++, C#, Python, PHP, Go, etc. Visual Studio Code (not Visual Studio IDE) is a lightweight source code editor for JavaScript, TypeScript, and Node.js Applications.
