Visual Studio Code is an open-source, cross-platform code editor developed by Microsoft. It has built-in debugging support, embedded Git control, syntax highlighting, code completion, integrated terminal, code refactoring, and snippets.
This article describes how to install Visual Studio Code on CentOS 8.
The instructions assume that you are logged in as a user with sudo privileges.
Installing Visual Studio Code on CentOS
The easiest and recommended way to install Visual Studio Code on CentOS 8 systems is to enable the VS Code repository and install the VS Code package through the command line:
- Import the Microsoft GPG key:
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
- Open your text editor and create the repository file:
sudo nano /etc/yum.repos.d/vscode.repo
- Paste the following content to enable the VS Code repository:
name=Visual Studio Code
baseurl=https://packages.microsoft.com/yumrepos/vscode enabled=1 gpgcheck=1
Save the file and close your text editor.
- Install the latest version of Visual Studio Code by typing:
sudo dnf install code
That’s it. Visual Studio Code has been installed on your CentOS desktop and, you can start using it.
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
code or by clicking on the VS Code icon (
Applications -> Programming -> Visual Studio Code).
When you start VS Code for the first time, a window like the following should appear:
You can now begin installing extensions and configuring VS Code according to your preferences.
Updating Visual Studio Code
When a new version is released you can update the Visual Studio Code package through your desktop standard Software Update tool or by running the following command in your terminal:
sudo dnf update
We want to hear your thoughts about this. Is there anything in particular that you love about it? What can we do to improve our services and experience? Leave a comment below or open a ticket on our helpdesk and we’ll personally review all suggestions and feedback.
Since it was founded in 2015, Servercheap has always strived to provide its clients with enterprise-level performance at an unbeatable cost. Servercheap offers a wide range of customizable hybrid and virtual private server hosting services. All Servercheap clients enjoy a 99.9% uptime SLA and 24/7 rapid response support team.
At Servercheap, our core directive has always been to provide our clients with the best services and infrastructure possible, whether you’re hosting a game server, a high-intensity database, a development environment, or anything in-between.
For more information, visit https://www.servercheap.net