Visual Studio Code (or VSCode for short) is an open-source (licensed under the MIT License) text editor developed by Microsoft. It has several IDE-type features (such as an integrated debugger, code completion and linting), so it can be argued to be an IDE. Despite being open-source official builds of VSCode by Microsoft are licensed under a proprietary EULA as they include proprietary branding. These official builds have extra features, most notably they have support for installing extensions from the VSCode marketplace via its extension gallery, while open-source builds do not.
Installation
Official 64-bit builds
GPG signed RPM packages for official 64-bit builds of VSCode can be installed (and subsequently automatically updated) from a Microsoft provided yum/dnf repo as described in their installation instructions for Fedora/RHEL/CentOS.
See that page for details on importing Microsoft's GPG key and setting up the repo.
Official 32-bit builds
32-bit RPMs can be retrieved directly from download page. To install them run:
sudo dnf install <FILENAME>
where <FILENAME>
is the file name of the downloaded RPM, including its file extension (.rpm
).
Open-source builds
Some users may prefer to build VS Code from the provided tarballs, rather than trusting that the official RPM matches the provided sources. To build VSCode from source run:
sudo dnf install -y make gcc gcc-c++ glibc-devel git-core libgnome-keyring-devel tar libX11-devel python createrepo rpmdevtools fakeroot nodejs wget VERSION=$(wget -q https://github.com/Microsoft/vscode/releases/ -O - | grep "tar.gz" | grep href | head -n 1 | cut -d '"' -f 2 | sed 's|/Microsoft/vscode/archive/||g' | sed 's|.tar.gz||g') ARCH=$(uname -m) sudo npm install -g gulp node-gyp wget -cqO- https://github.com/Microsoft/vscode/archive/${VERSION}.tar.gz | tar xz --transform="s/vscode-${VERSION}/vscode/" cd vscode scripts/npm.sh install if [[ $ARCH == "x86_64" ]]; then gulp vscode-linux-x64-build-rpm cd .build/linux/rpm/x86_64 sudo dnf install -y code-oss*.rpm else gulp vscode-linux-ia32-build-rpm cd .build/linux/rpm/i386 sudo dnf install -y code-oss*.rpm fi
AppImage
A 64-bit AppImage for Visual Studio Code (open-source build) can be found here.