From Fedora Project Wiki

Revision as of 23:53, 15 December 2016 by Fusion809 (talk | contribs) (Creating article)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Visual Studio Code (or VSCode for short) is an open-source (licensed under the MIT License) text editor developed by Microsoft. 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

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

External links