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 https://packages.microsoft.com/keys/microsoft.asc
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'
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