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 builds
RPM packages for proprietary builds of VSCode can be downloaded from here (for 64-bit RPMs) and here (for 32-bit RPMs). To install them merely run:
sudo dnf install <FILENAME>
where <FILENAME>
is the file name of the RPM, including its file extension (.rpm
).
Open-source builds
Open-source builds of VSCode are not as easily available as the official proprietary builds so one is usually left to build it oneself. To create an open-source build of VSCode merely 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.