本文介绍了有没有办法更改 Visual Studio Code 的扩展文件夹位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将 Visual Studio Code 放在 OneDrive 上,目的是将其与其我的设备上的设置.

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

但是,扩展存储在 Windows 上的 %USERPROFILE%\.vscode\extensions 中.

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

是否可以更改此文件夹的位置,以便将其放在 Visual Studio Code 主文件夹中?

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

起初我认为复制 Visual Studio Code 文件夹的 resources\app\extensions 中的扩展将是一个不错的解决方法,但那行不通.

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.

推荐答案

一个小技巧:

在 Visual Studio Code 安装路径下创建一个到文件夹 %USERPROFILE%\.vscode\extensions 的符号链接.

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

这篇关于有没有办法更改 Visual Studio Code 的扩展文件夹位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 23:59