How to Install Visual Studio Code on Fedora

How to Install Visual Studio Code on Fedora

Table of Contents

How to Install Visual Studio Code on Fedora



Visual Studio Code, developed by Microsoft, is a source code editor for Windows, Linux, and Mac. In addition to code editing functions, it also offers tools like debugging, running tasks, and version control. The ease of opening, editing, and compiling code in Visual Studio Code makes it an ideal everyday tool. Visual Studio Code supports a variety of languages, and its features include syntax highlighting, bracket matching, automatic indentation, and box selection. The software qualifies as an integrated development environment, which allows developers to test and write code simultaneously. Start using Visual Code now to ensure the quality of your work. Let’s begin by installing Visual Code.






For Fedora systems to be registered with VPSie, you need to create a VPSie account if you don’t have one already.

Our example is based on an Fedora instance with GUI installed. Here is a link that will guide you to installing Debian GUI if you do not already have it installed.

In order to install VSCode, you only need to run the following commands. Install the key and repository with the following commands:

# sudo rpm --import
# sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=\nenabled=1\ngpgcheck=1\ngpgkey=" > /etc/yum.repos.d/vscode.repo'

Update the package cache then use dnf to install the VScode package:

# dnf check-update

Now install the Vscode:

# sudo dnf install code

Now Verify that the icon for VScode is created on the Application menu and open it. 


If you have trouble opening from the application menu, try running the following command as sodoer instead of root.

# sudo code --verbose --user-data-dir --no-sandbox

The first thing you should do is customize your VS-code account once you’ve opened it. I’m not doing anything at the moment.

Visual-Studio-Code vpsie
Visual-Studio-Code vpsie

You can use the Vs code now, as it has been successfully installed on your Fedora instance. Thank you for reading.

Share on