How to change settings and application folders in VSCode

时间:2017-08-30 08:34:28

标签: synchronization visual-studio-code directory settings

Is it possible to change these folders for Visual Studio Code?

C:\Users\<USER>\.vscode 

C:\Users\<USER>\AppData\Roaming\Code

I want these folders to be on one custom place. I want to sync these folders with Google Drive for example. I dont want to use extensions, this is no option for me.

1 个答案:

答案 0 :(得分:0)

您可以使用符号链接(using the mklink command),VSCode无需明确支持它(I don't think it does at the moment)。

例如,我使用符号链接来共享VSCode和VSCode Insiders之间已安装的扩展,这意味着我的:

C:\Users\<USER>\.vscode-insiders\extensions

文件夹是指向

的符号链接
C:\Users\<USER>\.vscode\extensions

为此,我在cmd中运行了以下内容:

mklink /D C:\Users\<USER>\.vscode-insiders\extensions C:\Users\<USER>\.vscode\extensions

当然,您也可以在Google云端硬盘中的某个文件夹中添加符号链接。