Visual Studio Code: Difference between revisions

From NixOS Wiki
imported>Truthadjustr
No edit summary
imported>Mic92
add syntax highlighting
Line 1: Line 1:
'''How To Install Microsoft's Visual Studio Code'''
'''How To Install Microsoft's Visual Studio Code'''


Because it is Nixos, you don't have to be root in order to be able to install stuff. As a normal user, do:
Because it is NixOS, you don't have to be root in order to be able to install stuff. As a normal user, do:


nix-env -iA nixos.vscode
<syntaxHighlight lang=console>
$ nix-env -iA nixos.vscode
</syntaxHighlight>


And to open or launch the IDE, do:
And to open or launch the IDE, do:


code
<syntaxHighlight lang=console>
$ code
</syntaxHighlight>


As a normal user, you might be curious what stuff you have installed. To find out, do:
As a normal user, you might be curious what stuff you have installed. To find out, do:


nix-env -q
<syntaxHighlight lang=console>
$ nix-env -q
</syntaxHighlight>


Also, if you want to uninstall stuff that you installed there as a normal user, do:
Also, if you want to uninstall stuff that you installed there as a normal user, do:


nix-env --uninstall package-name-here
<syntaxHighlight lang=console>
$ nix-env --uninstall package-name-here
</syntaxHighlight>


Replace the package-name-here with whatever package returned by 'nix-env -q'.
Replace the package-name-here with whatever package returned by 'nix-env -q'.

Revision as of 07:40, 16 June 2018

How To Install Microsoft's Visual Studio Code

Because it is NixOS, you don't have to be root in order to be able to install stuff. As a normal user, do:

$ nix-env -iA nixos.vscode

And to open or launch the IDE, do:

$ code

As a normal user, you might be curious what stuff you have installed. To find out, do:

$ nix-env -q

Also, if you want to uninstall stuff that you installed there as a normal user, do:

$ nix-env --uninstall package-name-here

Replace the package-name-here with whatever package returned by 'nix-env -q'.