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

I put Visual Studio code on OneDrive to sync it with its settings on my devices.

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

Can I change the location of this folder so that I can put it in the main Visual Studio code folder?

At first, I thought copying the extensions in the resources\app\extensionsVisual Studio code folder would be a good solution, but that didn't work.

I also looked for a solution on the documentation page and in the user settings, but to no avail.

+15
source share
2 answers

:

%USERPROFILE%\.vscode\extensions Visual Studio.

+15

- Visual Studio Code "" ( ):

 --extensions-dir="DRIVELETTER:\VSCODE\extensions"
 --user-data-dir="DRIVELETTER:\VSCODE\settings"

DRIVERLETTER VSCODE - , Visual Studio. :

"D:\Microsoft VS Code\Code.exe" --extensions-dir="D:\Microsoft VS Code\extensions"

:

"D:\Microsoft VS Code\Code.exe" --user-data-dir="D:\Microsoft VS Code\settings"

"", ""

, - Visual Studio. Windows, Linux macOS:

Windows Linux

Visual Studio Visual Studio:

| - VSCode-win32-x64-1.25.0-insider
| | - Code.exe ( )
| | -
| | -...

Visual Studio, , , ..

Visual Studio. Visual Studio: Visual Studio.

Macos

macOS . , , Code . - code-portable-data:

| - Visual Studio Code.app
| - code-portable-data

, , , Visual Studio. , , :

xattr -dr com.apple.quarantine Visual\ Studio\ Code.app

: code-insiders-portable-data.

+11

Source: https://habr.com/ru/post/1657959/


All Articles