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.
- How to Install Postman REST Client in Fedora 34/35
- How to install Atom Text Editor on Fedora 35
- How to install Fedora 35 Gnome step by step with screenshots
- Things to do on a Fresh Fedora 35 Desktop Install
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
Table of Content
- Ensuring that Fedora 35 Workstation is up to date
- Installing Visual Studio Code
- Launching VS Code
1. 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:
sudo dnf update
2. 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
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
Then installing the repository
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
dnf check-update sudo dnf install -y code
Alternatively, you can download the VS Code .rpm file and install it directly:
sudo dnf install -y ./code.x86_64.rpm
You can check all the information about the installed package.
$ 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 <[email protected]> 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.
3. Launching VS Code
To Launch VS Code on Fedora, open up your terminal then run this command:
Or search from activities menu.
You should get VS Code welcome window.
You can then install the plugins to extend VS Code functionality.
We managed to install VS Code in a Fedora 35 Workstation in this guide.