Is there a way to change the extensions folder location for Visual Studio Code?

Michaël Polla picture Michaël Polla · Oct 17, 2016 · Viewed 57k times · Source

I've put Visual Studio Code on OneDrive, for the purpose of syncing it with its settings across my devices.

However, extensions are stored in %USERPROFILE%\.vscode\extensions on Windows.

Is it possible to change this folder's location so I can put it in the main Visual Studio Code folder?

At first I thought that copying the extensions in the resources\app\extensions of Visual Studio Code folder will be a nice workaround, but that doesn't work.

I've also searched for a solution on the documentation page and in the user settings, with no results.

Answer

clf picture clf · Sep 17, 2017

A little hack:

Create a symbolic link to the folder %USERPROFILE%\.vscode\extensions under the Visual Studio Code install path.