From Fedora Project Wiki

(Updated the official VSCode download instructions)
(Updating install instructions, they've become a little outdated)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:


== Installation ==
== Installation ==
=== Official 64-bit builds ===
Official installation instructions can be found [https://code.visualstudio.com/docs/setup/linux here]. It involves adding its official repository using DNF, and installing it from it. Alternatively, there is a Flatpak package for it in the Flathub repository. To install it from this repository run:
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 [https://code.visualstudio.com/docs/setup/linux#_rhel-fedora-and-centos-based-distributions 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 [https://code.visualstudio.com/Download#linux32-downloads-stable download page]. To install them run:


<pre>
<pre>
sudo dnf install <FILENAME>
$ flatpak install https://flathub.org/repo/appstream/com.visualstudio.code.flatpakref
</pre>
</pre>
where <code><FILENAME></code> is the file name of the downloaded RPM, including its file extension (<code>.rpm</code>).
=== 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:
<pre>
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
</pre>
=== AppImage ===
A 64-bit [[AppImage]] for Visual Studio Code (open-source build) can be found [https://github.com/fusion809/Code-OSS.AppImage/releases/tag/continuous here].


== External links ==
== External links ==

Latest revision as of 01:51, 10 January 2018

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 installation instructions can be found here. It involves adding its official repository using DNF, and installing it from it. Alternatively, there is a Flatpak package for it in the Flathub repository. To install it from this repository run:

$ flatpak install https://flathub.org/repo/appstream/com.visualstudio.code.flatpakref

External links