From Fedora Project Wiki

(Creating article)
 
(Updating install instructions, they've become a little outdated)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[http://code.visualstudio.com/ '''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.  
[http://code.visualstudio.com/ '''Visual Studio Code'''] (or '''VSCode''' for short) is an open-source (licensed under the MIT License) text editor developed by Microsoft. It has several [[Integrated development environment|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 ==
== Installation ==
=== Official 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:
RPM packages for proprietary builds of VSCode can be downloaded from [http://code.visualstudio.com/docs/?dv=linux64_rpm here] (for 64-bit RPMs) and [http://code.visualstudio.com/docs/?dv=linux64_rpm here] (for 32-bit RPMs). To install them merely run:


<pre>
<pre>
sudo dnf install <FILENAME>
$ flatpak install https://flathub.org/repo/appstream/com.visualstudio.code.flatpakref
</pre>
 
where <code><FILENAME></code> is the file name of the RPM, including its file extension (<code>.rpm</code>).
 
=== Open-source builds ===
To create an open-source build of VSCode merely 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>
</pre>


== External links ==
== External links ==
* [https://github.com/Microsoft/vscode Microsoft/vscode GitHub repository]
* [https://github.com/Microsoft/vscode Microsoft/vscode GitHub repository]
* [https://code.visualstudio.com/docs/setup/linux VSCode Linux installation page]


[[Category:Text editors]]
[[Category:Text editors]]

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