You can support us by downloading this article as PDF from the Link below. Download the guide as PDF

Question: How to Install Visual Studio Code on Fedora 32/31/30/29?. This guide is a reference for the installation of the Visual Studio Code on Fedora 32/31/30/29. Visual Studio Code is a popular source-code editor developed by Microsoft for Windows, Linux, and macOS. It is redefined and optimized for building and debugging modern web and cloud applications.

Visual Studio Code packages for Fedora Linux are available on an RPM repository maintained by Microsoft. But you need to import GPG key and add the repository before doing the actual installation of VS Code on Fedora.

Import repository key.

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

When done, add VS Code repository contents to your Fedora Linux.

cat <<EOF | sudo tee /etc/yum.repos.d/vscode.repo
[code]
name=Visual Studio Code
baseurl=https://packages.microsoft.com/yumrepos/vscode
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc
EOF

Then update the package cache and install Visual Studio Code on Fedora 32/31/30/29.

$ dnf check-update
$ sudo dnf install code
Visual Studio Code                              507 kB/s | 2.1 MB     00:04    
Last metadata expiration check: 0:00:03 ago on Fri 03 May 2019 10:11:19 PM EAT.
Dependencies resolved.
================================================================================
 Package      Architecture   Version                         Repository    Size
================================================================================
Installing:
 code         x86_64         1.33.1-1554971173.el7           code          66 M

Transaction Summary
================================================================================
Install  1 Package

Total download size: 66 M
Installed size: 66 M
Is this ok [y/N]: y

Package details such as version number can be checked with:

$ rpm -qi code
Version     : 1.33.1
Release     : 1554971173.el7
Architecture: x86_64
Install Date: Fri 03 May 2019 10:13:38 PM EAT
Group       : Development/Tools
Size        : 198174740
License     : Multiple, see https://code.visualstudio.com/license
Signature   : RSA/SHA256, Fri 12 Apr 2019 12:04:54 AM EAT, Key ID eb3e94adbe1229cf
Source RPM  : code-1.33.1-1554971173.el7.src.rpm
Build Date  : Thu 11 Apr 2019 11:26:26 AM EAT
Build Host  : 43a767683aef
Relocations : (not relocatable)
Packager    : Visual Studio Code Team <[email protected]>
Vendor      : Microsoft Corporation
URL         : https://code.visualstudio.com/
Summary     : Code editing. Redefined.
.....

To Launch VS Code on Fedora, run:

$ code

Or search from activities menu.

install vscode fedora launch

You should get VS Code welcome window.

install vscode fedora

Enjoy your development with Visual Studio Code on Fedora. Check a comprehensive guide on how to use VS Code. Watching Introductory Videos should also help you get started.

As an appreciation for the content we put out,
we would be thrilled if you support us!


As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.

LEAVE A REPLY

Please enter your comment!
Please enter your name here