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.

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'
dnf check-update
sudo dnf install code

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