How To Install Visual Studio Code In Fedora

Visual Studio Code over the past few years has risen in popularity and many programmers that are after an IDE are now using it. I won’t be reviewing Visual Studio Code in this article but rather showing how you can install Visual Studio Code on Fedora and have it update through DNF (package manager).


If you want to install it for other distributions such as Debian, Ubuntu, CentOS, RHEL, openSUSE, Arch Linux etc, you can visit here for instructions. The instructions in this article will work for Fedora 22 and above. Open a terminal and enter the following.

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

That’s it! If you want to update Visual Studio Code, all you have to do is run sudo dnf update

Leave a comment

Your email address will not be published. Required fields are marked *

Blue Captcha Image