How to install Visual Studio Code on CentOS 8

Visual Studio Code is an open source, cross-platform code editor developed by Microsoft. It includes built-in debugging support, embedded Git version control, syntax highlighting, code auto-completion, integrated terminal, code reconstruction, and code snippet functions.

This article mainly describes how to install Visual Studio Code on CentOS 8.

1. Prerequisites##

The following operations assume that you have logged in as a user with sudo permissions.

2. Install Visual Studio Code on CentOS

The easiest and most recommended way to install Visual Studio Code on CentOS8 is to enable the VS Code source and install the VS Code package through the command line.

  1. Import Microsoft GPG key:
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
  1. Open your text editor and create the source repository file:
sudo nano /etc/yum.repos.d/vscode.repo

Paste the following content in and enable the VS Code source:

[ 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 the file, and close your text editor.

  1. Install the latest version of Visual Studio Code, enter:

sudo dnf install code

that's it. Visual Studio Code has been installed on your CentOS desktop version, and you can start using it.

Three, start using Visual Studio Code

Now that VS Code has been installed on your CentOS system, you can start it, enter code on the command line, or click the VS Code icon (App->Program->Visual Studio Code)

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

Now you can install plugins and configure VS Code according to your preferences.

Three, upgrade Visual Studio Code

When a new version is released, you can upgrade Visual Studio Code through your desktop software upgrade tool or by running the following command in the terminal:

sudo dnf update

Four, summary##

You have installed VS Code on your CentOS 8 machine. Next, you can install additional components, as well as do user customization and workspace settings.

To learn more about VS Code, browse Official Document Page.

Recommended Posts

How to install Visual Studio Code on CentOS 8
How to install Visual Studio Code on Ubuntu 20.04
How to install Visual Studio Code on Ubuntu 20.04
How to install jdk1.8 on centOS7
How to install MySQL on CentOS 8
How to install Memcached on CentOS 8
How to install R on CentOS 8
How to install FFmpeg on CentOS 8
How to install Virtualbox on CentOS 8
How to install TensorFlow on CentOS 8
How to install TeamViewer on CentOS 8
How to install Perl 5 on CentOS
How to install Git on CentOS 8
How to install Gradle on CentOS 8
How to install Elasticsearch on CentOS 8
How to install Jenkins on CentOS 8
How to install Java on CentOS 8
How to install Go on CentOS 8
How to install GCC on CentOS 8
How to install Yarn on CentOS 8
How to install Nginx on CentOS 8
How to install Asterisk on CentOS 7
How to install Jenkins on CentOS 8
How to install Vagrant on CentOS 8
How to install Python 3.8 on CentOS 8
How to install Tomcat 9 on CentOS 8
How to install Webmin on CentOS 8
How to install Ruby on CentOS 8
How to install Skype on CentOS 8
How to install htop on CentOS 8
How to install Python on CentOS 8
How to install Elasticsearch on CentOS 8
How to install Postgresql on CentOS 8
How to install Wordpress on Centos
How to install htop on CentOS 8
How to install TeamViewer on CentOS 8
How to install MariaDB on CentOS 8
How to install MongoDB on CentOS 7
How to install Odoo 13 on CentOS 8
How to install Apache on CentOS 8
How to install OpenCV on CentOS 8
How to install PHP on CentOS 8
How to install MongoDB on CentOS 8
How to install Apache Maven on CentOS 8
How to install Apache Kafka on CentOS 7
[Graphic] How to install tomcat on centos
R&D: How To Install Python 3 on CentOS 7
How to install GCC compiler on CentOS 7
How to install offline JDK1.8 on centos7.0
How to install and configure Elasticsearch on CentOS 7
How to install and use Docker on CentOS 7
How to install RPM packages on CentOS Linux
How to install openssh from centos 7 source code
How to install and configure VNC on CentOS 8
How to install and use Composer on CentOS 8
How to install and configure Redis on CentOS 8
How to install Node.js and npm on CentOS 8
How to install jdk1.8.0_151 and mysql5.6.38 on centos7.2.1511
How to install and configure phpMyAdmin on CentOS 6
How to install and use Curl on CentOS 8
How to install and configure Owncloud on CentOS 8