Installing Visual Studio Code on RHEL

RHEL, Fedora, and CentOS based distributions
We currently ship the stable 64-bit VS Code in a yum repository, the following script will install the key and repository:
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'

Then update the package cache and install the package using dnf (Fedora 22 and above):
sudo dnf check-update
sudo dnf install code

Or on older versions using yum:
yum check-update
sudo yum install code

Due to the manual signing process and the system we use to publish, the yum repo may lag behind and not get the latest version of VS Code immediately