• Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate
TecNStuff
Menu
  • Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate

How to Install Visual Studio Code on CentOS 8

Written by Admin, Updated On May 3, 2020
centos, ide, visualstudiocode
How to Install Visual Studio Code on CentOS 8

Visual Studio Code is an open source and cross-platform code editor owned by Microsoft. It includes support for debugging, embedded Git control and GitHub, syntax highlighting, intelligent code completion, snippets, and code refactoring. You can extend Visual Studio Code functionality using extensions. This guide explains how to install Visual Studio Code on CentOS 8 system.

Prerequisites#

Before you start installation, Make sure you are logged in with non-root user account with sudo privileges.

Install Visual Studio Code on CentOS#

It’s very simple and straightforward way to install Visual Studio Code by enabling VS Code repositories. Follow the below steps to install VS Code on your CentOS 8 system:

1. Import the Microsoft GPG key:

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

2. Create the repository file using your text editor:

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

To enable the VS Code repository, add the following content:

[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 file.

3. Install VS Code package once the repository enabled:

sudo dnf install code

That’s it. You have successfully install Visual Studio Code on your CentOS desktop and it’s ready to use.

Start Visual Studio Code#

Now Visual Studio Code is installed on your system. You can launch it using terminal by typing code or by clicking on the VS Code icon (Applications -> Programming -> Visual Studio Code).

When it will launch first time by your system it will look screen like as below:

visual-studio-code

Now you can use and customize the Visual Studio Code by installing extensions.

Update Visual Studio Code#

You can update the Visual Studio Code when a new version is released. You can update it through your desktop standard Software Update tool. Alternatively, you can update by running the following commands in your terminal:

sudo dnf update

Conclusion#

We have explained how to install Visual Studio Code on your CentOS 8 system. You can install extensions and configuring VS Code according to your preferences. Install Additional Components and customize your User and Workspace Settings. To get more details about VS Code visit their official documentation page.

Feel free to leave a comment below, if any question.

If our content helps you, please consider buying us a coffee

Thank you for your support.

Share On
Share on Facebook
Share on Twitter
Share on Reddit
Share on Tumblr
 Previous Article How to Set Up SSH Keys on Ubuntu 20.04
Next Article   How to Install Anaconda on Ubuntu 20.04

Related Posts

  • How to Install Atom Text Editor on Ubuntu 22.04

    How to Install Atom Text Editor on Ubuntu 22.04

    November 9, 2022
  • How to Install Php 8 on CentOS 8

    How to Install PHP 8 on CentOS 8

    January 27, 2021
  • How to Install Python 3.9 on CentOS 8

    How to Install Python 3.9 on CentOS 8

    December 31, 2020

Leave a Reply Cancel reply

DigitalOcean Referral Badge

Popular Posts

  • How to Install SSH Keys on Ubuntu 22.04
    How to Set up SSH Keys on Ubuntu 22.04 January 7, 2023
  • How to Install Mongodb on Debian 11
    How to Install MongoDB on Debian 11 Linux January 11, 2023
  • How to Install Puppet Agent on Ubuntu 22.04
    How to Install Puppet Agent on Ubuntu 22.04 January 22, 2023
  • How to Install Jenkins on Debian 11
    How to Install Jenkins on Debian 11 January 5, 2023
  • How to Change-Hostname Ubuntu 22.04
    How to Change Hostname on Ubuntu 22.04 January 19, 2023
© 2020 TecNStuff All rights reserved. This website is using and storing cookies on your browser. By using this website you agree our Privacy Policy.  Follow us -  Twitter | Facebook