How to Install Visual Studio Code on Rocky Linux 8 and CentOS 8

Install Visual Studio Code on Rocky Linux 8 and CentOS 8

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

The easiest and recommended way to install Visual Studio Code on Rocky Linux 8, CentOS 8 and AlmaLinux 8 is to enable the VS Code repository and install the VS Code package via the command line.

This tutorial describes how to install the Visual Studio Code editor on Rocky Linux 8, CentOS 8 and AlmaLinux 8

Precondition

To install Visual Studio Code on CentOS 8, you must be logged in as a user with sudo privileges.

Install Visual Studio Code on Rocky Linux 8 / CentOS 8

The easiest and recommended way to install Visual Studio Code on a Rocky Linux 8, CentOS 8 system is to enable the VS Code repository and install the VS Code package via the command line:

1) Import Microsoft GPG key:

sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc

2) Open your text editor and create a repository file:

sudo nano /etc/yum.repos.d/vscode.repo 

Copy and Paste the following content to activate the VS Code repository:

[code] 
name=Visual Studio Code 
baseurl=https://packages.microsoft.com/yumrepos/vscode 
enabled=1 
gpgcheck=1 
gpgkey=https://packages.microsoft.com/keys/microsoft.asc 

Save and close the text editor nano if you’re done.

3) Install the latest version of Visual Studio Code by typing:

sudo dnf install code

Visual Studio Code has been installed on Rocky Linux 8 or CentOS 8 and you can start using it.

How to Install and Configure Mono on Rocky Linux 8 and CentOS 8

Starting Visual Studio Code on Rocky Linux 8 / CentOS 8

Now that VS Code is installed on the Rocky Linux or CentOS system, you can launch it either from the command line by typing codeor by clicking the VS Code icon ( Applications -> Programming -> Visual Studio Code).

When you start VS Code for the first time, a window like the following will appear:

centos visual studio code rocky linux

You can now start installing extensions and configuring VS Code according to your preferences.

Rocky Linux 8 Visual Studio Code update

When a new version is released, you can update the Visual Studio Code package via the Software Update tool standard Desktop or by running the following command in your terminal:

sudo dnf update 

Conclusion

You have successfully installed VS Code on your Rocky Linux 8 and CentOS 8 machine. Next step is to install Additional Components and customize your User and Workspace Settings.

To learn more about VS Code visit the page official documentation VS Code .

1 Trackback / Pingback

  1. Linux does not need antivirus or firewall, myth or truth? - LinuxStoney

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.