How to Install Visual Studio Code on CentOS 8

Install Visual Studio Code on CentOS 8

In this article, we will have explained the necessary steps to install and configure Visual Studio Code on CentOS 8. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

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

Install Visual Studio Code on CentOS

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

Step 2. Install Visual Studio Code on CentOS 8.

Import the GPG key used for signing the packages:

Next, continue to add the Visual Studio Code repository:

Once the repository is enabled, install the latest version of Visual Studio Code by typing:

Step 3. Starting Visual Studio Code.

Now that VS Code is installed on your CentOS system you can launch it either from the command line by typing:

Or by clicking on the VS Code icon (Applications -> Programming -> Visual Studio Code).

Congratulation, you have learned how to install and configure Visual Studio Code on CentOS 8. If you have any question, please leave a comment below.