Kevin Jensen Petersen
Kevin Jensen Petersen

Reputation: 513

Install VSCode in a specific folder

I just downloaded the Visual Studio Code App from https://code.visualstudio.com/ and when I tried to install it, it simply just installed it by itself, without the option to change the installation path.

I have an external harddrive, which is where I want the IDE to be placed instead of the Local Harddrive. How can I change this?

Upvotes: 4

Views: 17715

Answers (3)

bxk21
bxk21

Reputation: 191

If you want to install to a custom location (and want to keep the settings/extensions/session) follow the instructions to install it in Portable Mode.

In short:

  1. Download the .zip version
  2. Create a /data directory in the install root

Upvotes: 4

qaisjp
qaisjp

Reputation: 811

On the VSCode download page select "System Installer" instead of "User Installer". The System installer will prompt you for the install location.

Screenshot of "System Installer" link

Upvotes: 13

Kevin Jensen Petersen
Kevin Jensen Petersen

Reputation: 513

Full credit to Hans Passant for giving the following working solution as a comment.

The installer does very little beyond copying the files, it just creates some Explorer context menu shortcuts ("Open with Code"). Otherwise following Chromium conventions and copying itself to c:\Users\yourname\AppData\Local\Code\app-0.1.0 so it can update itself without you noticing. Boo. So high odds that simply moving that folder to the other drive works just fine, put it anywhere and create a shortcut to Code.exe. If you still want the context menu entry to work then use Regedit and search for "code\app-0.1.0".

Upvotes: 3

Related Questions