• 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 7

Written by Admin, Updated On August 1, 2019
centos, ide, visualstudiocode
How to Install Visual Studio Code on CentOS 7

Visual Studio Code is a and open source 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. In this tutorial, we will show you how to install Visual Studio Code on CentOS 7 system.

Prerequisites#

Ensure that you should logged in with non-root user account with sudo privileges.

Install Visual Studio Code on CentOS#

To install Visual Studio Code on your CentOS system perform following steps :

At first, you have to import the Microsoft GPG key using the following command:

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

After that make repo file as following to enable the Visual Studio Code repository:

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

Add the below content in to that 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 and close the file.

Finally, once the repository enabled you have to type below command to install Visual Studio Code on your system:

sudo yum 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 (Application -> 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 yum update

Conclusion#

You have successfully installed VS Code on your CentOS 7 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.

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

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 Install VirtualBox on CentOS 7
Next Article   How to Install Atom Text Editor on CentOS 7

Related Posts

  • How to Install Python 3.9 on CentOS 8

    How to Install Python 3.9 on CentOS 8

    December 31, 2020
  • How to Install GIMP 2.10 on CentOS 8

    How to Install GIMP 2.10 on CentOS 8

    December 30, 2020
  • How to Install Notepad++ on CentOS 8

    How to Install Notepad++ on CentOS 8

    December 26, 2020

Leave a Reply Cancel reply

Popular Posts

  • How to Install Python 3.9 on Debian 10
    How to Install Python 3.9 on Debian 10 December 25, 2020
  • How to Install GIMP on Ubuntu 20.04
    How to Install GIMP 2.10 on Ubuntu 20.04 December 22, 2020
  • How to Install Notepad++ on Debian 10
    How to Install Notepad++ on Debian 10 December 23, 2020
  • How to Install Php 8 on Debian 10
    How to Install PHP 8 on Debian 10 January 2, 2021
  • How to Install Php 8 on Ubuntu 20.04
    How to Install PHP 8 on Ubuntu 20.04 December 28, 2020
© 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