Install Visual Studio Code on CentOS 7

GeoSense ✅
Aug 24, 2022

--

Install Visual Studio Code on CentOS machines. You’ll need to be logged in as a user with sudo access to be able to install packages.

  1. Importing the Microsoft GPG key:
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc

2. Create the following repo file to enable the Visual Studio Code repository:

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

Paste the following content into the file:

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

3. Install the latest version of Visual Studio Code

sudo yum install code

Starting Visual Studio Code

Typing code OR

Clicking on the VS Code icon

Updating Visual Studio Code

sudo yum update

If you have any questions, please leave a comment below.

--

--

GeoSense ✅
GeoSense ✅

Written by GeoSense ✅

🌏 Remote sensing | 🛰️ Geographic Information Systems (GIS) | ℹ️ https://www.tnmthai.com/medium

No responses yet