Logo
  • Ubuntu
  • CentOS
  • Debian
  • Fedora
  • RedHat

How to Install Visual Studio Code on Linux - DesignLinux

May 29 2020
designlinux 0 Comments

Developed by Microsoft, Visual Studio Code is a free and open-source, cross-platform IDE or code editor that enables developers to develop applications and write code using a myriad of programming languages such as C, C++, Python, Go and Java to mention a few.

In this guide, we will walk you through the installation of the Visual Studio Code on Linux. To be more specific, you will learn how to install the Visual Studio Code on both Debian-based and RedHat-based Linux distributions.

On this page:
  1. How to Install Visual Studio Code on Debian, Ubuntu and Linux Mint
  2. How to Install Visual Studio Code on CentOS, RHEL, and Fedora

How to Install Visual Studio Code on Debian, Ubuntu and Linux Mint

The most preferred method of installing Visual Code Studio on Debian based systems is by enabling the VS code repository and installing the Visual Studio Code package using the apt package manager.

$ sudo apt update

Once updated, proceed and install dependencies required by executing.

$ sudo apt install software-properties-common apt-transport-https

Next, using the wget command, import Microsoft’s GPG key as shown:

$ sudo wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -

With the addition of Microsoft’s GPG key, enable Visual Studio Code’s repository by running the command:

$ sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"

Once you’ve enabled the repository, update the system and install Visual Studio Code by running the command:

$ sudo apt update
$ sudo apt install code

Due to its size, the installation takes approximately 5 minutes. Once installed, use the application manager to search Visual Code Studio and launch it as shown.

Install Visual Studio Code in Ubuntu

Install Visual Studio Code in Ubuntu

How to Install Visual Studio Code on CentOS, RHEL, and Fedora

The procedure of installing Visual Studio Code on RedHat based distributions is pretty much like Ubuntu. Right off the bat, launch your terminal and update your system:

$ sudo dnf update

Next, import Microsoft’s GPG key using the rpm command below:

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

With Microsoft’s GPG key in place, proceed and create the repository file for Visual Studio Code:

$ sudo vim /etc/yum.repos.d/vstudio_code.repo

Next, append the code below and save 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

To install Visual Studio code, run the command:

$ sudo dnf install code

To use it, use the Application manager to search the Visual Studio Code and launch it, you will get a window as shown below.

Install Visual Studio Code in CentOS

Install Visual Studio Code in CentOS

You can now proceed and start writing your code and installing your preferred extensions.

Conclusion

Visual Studio Code is a powerful and feature-rich code editor that allows you to develop applications in a diverse array of programming languages. It’s especially popular with Python and C programmers. In this topic, we walked you through the installation of the Visual Studio Code on Linux.

Sharing is Caring…
Share on FacebookShare on TwitterShare on LinkedinShare on Reddit

Related

Tags: Code Editors, Linux IDE Editors

How to Configure IP Network with ‘nmtui’ Tool

Prev Post

How to Create a Local Self-Signed SSL Certificate on CentOS 8

Next Post
Archives
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
Categories
  • AlmaLinux
  • Android
  • Ansible
  • Apache
  • Arch Linux
  • AWS
  • Backups
  • Bash Shell
  • Bodhi Linux
  • CentOS
  • CentOS Stream
  • Chef
  • Cloud Software
  • CMS
  • Commandline Tools
  • Control Panels
  • CouchDB
  • Data Recovery Tools
  • Databases
  • Debian
  • Deepin Linux
  • Desktops
  • Development Tools
  • Docker
  • Download Managers
  • Drupal
  • Editors
  • Elementary OS
  • Encryption Tools
  • Fedora
  • Firewalls
  • FreeBSD
  • FTP
  • GIMP
  • Git
  • Hadoop
  • HAProxy
  • Java
  • Jenkins
  • Joomla
  • Kali Linux
  • KDE
  • Kubernetes
  • KVM
  • Laravel
  • Let's Encrypt
  • LFCA
  • Linux Certifications
  • Linux Commands
  • Linux Desktop
  • Linux Distros
  • Linux IDE
  • Linux Mint
  • Linux Talks
  • Lubuntu
  • LXC
  • Mail Server
  • Manjaro
  • MariaDB
  • MongoDB
  • Monitoring Tools
  • MySQL
  • Network
  • Networking Commands
  • NFS
  • Nginx
  • Nodejs
  • NTP
  • Open Source
  • OpenSUSE
  • Oracle Linux
  • Package Managers
  • Pentoo
  • PHP
  • Podman
  • Postfix Mail Server
  • PostgreSQL
  • Python
  • Questions
  • RedHat
  • Redis Server
  • Rocky Linux
  • Security
  • Shell Scripting
  • SQLite
  • SSH
  • Storage
  • Suse
  • Terminals
  • Text Editors
  • Top Tools
  • Torrent Clients
  • Tutorial
  • Ubuntu
  • Udemy Courses
  • Uncategorized
  • VirtualBox
  • Virtualization
  • VMware
  • VPN
  • VSCode Editor
  • Web Browsers
  • Web Design
  • Web Hosting
  • Web Servers
  • Webmin
  • Windows
  • Windows Subsystem
  • WordPress
  • Zabbix
  • Zentyal
  • Zorin OS
Visits
  • 1
  • 2,513
  • 618,416

DesignLinux.com © All rights reserved

Go to mobile version