Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code extension installation without admin rights

I am thinking of asking my IT-Department of gaining the right to install VS-Studio Code, and using it with some extensions. Like Python.

My Question is: Can I install the extensions without having to use an admin user, under windows?

I got this exact Problem with Notepad++, where i can only install the Editor, via the Software deployment tool, but not the extensions(via the editor myself).

like image 999
d3rdon Avatar asked Apr 18 '17 08:04

d3rdon


3 Answers

You have the option to unpack the zip file and use the editor without running the installer. You will lack some features like 'Open with Code' in the contextmenu of the file explorer.

Windows setup without installer

like image 131
Huupke Avatar answered Oct 16 '22 09:10

Huupke


After the latest VS Code revision 1.26 (currently 1.25 insiders) it will be possible to install VS Code as a User and also updating all the extensions inside this directory.

See this link VS Code 1.25 release Notes

like image 3
d3rdon Avatar answered Oct 16 '22 09:10

d3rdon


Short answer No for installing VSCode and ~yes for installing extensions.

You seem to assume VSCode would install without admin privileges however that is not the case. There is an open issue since 2015 with a feature request to allow user level installations. There is another known bug which would prevent VSCode from launching without an admin account after an update.

To answer your question about installing an extension, it would depend on extension and if you've write access to your path for installing extensions which defaults to

%USERPROFILE%\.vscode\extensions

A lot of extensions seem to require root access under Linux, however on Windows most of the extensions install without any admin privileges ever since 1.0 release.

(Let me admit I now use VSCode as my primary editor and have stopped playing around all those icon packs & themes which used to require admin rights almost always so maybe it has nothing to do with post 1.0 releases).

like image 2
Abdullah Leghari Avatar answered Oct 16 '22 08:10

Abdullah Leghari