How To Install Visual Studio Code on Fedora 35 Workstation

Visual Studio Code is a source-code editor made by Microsoft for Windows, Linux and macOS. It is a streamlined code editor with support for development operations like debugging, task running, and version control. It aims to provide just the tools a developer needs for a quick code-build-debug cycle and leaves more complex workflows to fuller featured IDEs, such as Visual Studio IDE.

In this guide we are going to install Visual Studio Code in a Fedora 35 Workstation.

Related Content

Prerequisites

To follow along, ensure that you have the following:

  • Up to date Fedora 35 Workstation
  • Root access or User with sudo access on the server

Ensuring that Fedora 35 Workstation is up to date

Before proceeding let us ensure that our workstation is up to date. Use this command to achieve this:

1
sudo dnf update

Installing Visual Studio Code

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.

To add the repository, let’s start by install the key

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

Then installing the repository

1
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'

Now update the package cache and install the package using dnf

1
2
dnf check-update
sudo dnf install -y code

Alternatively, you can download the VS Code .rpm file and install it directly:

1
sudo dnf install -y ./code.x86_64.rpm

You can check all the information about the installed package.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
$ rpm -qi code
Name        : code
Version     : 1.61.2
Release     : 1634656920.el7
Architecture: x86_64
Install Date: Thu 04 Nov 2021 11:51:08 PM EAT
Group       : Development/Tools
Size        : 303882220
License     : Multiple, see https://code.visualstudio.com/license
Signature   : RSA/SHA256, Tue 19 Oct 2021 06:23:41 PM EAT, Key ID eb3e94adbe1229cf
Source RPM  : code-1.61.2-1634656920.el7.src.rpm
Build Date  : Tue 19 Oct 2021 06:22:18 PM EAT
Build Host  : d71a73a35a3c
Packager    : Visual Studio Code Team <vscode-linux@microsoft.com>
Vendor      : Microsoft Corporation
URL         : https://code.visualstudio.com/
Summary     : Code editing. Redefined.
Description :
Visual Studio Code is a new choice of tool that combines the simplicity of a code editor with what developers need for the core edit-build-debug cycle. See https://code.visualstudio.com/docs/setup/linux for installation instructions and FAQ.

Launching VS Code

To Launch VS Code on Fedora, open up your terminal then run this command:

1
code

Or search from activities menu.

You should get VS Code welcome window.

You can then install the plugins to extend VS Code functionality.

Conclusion

We managed to install VS Code in a Fedora 35 Workstation in this guide.

comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy