如何更改VS Code片段路径

时间:2017-07-18 23:50:22

标签: visual-studio-code

javascript片段放在名为appdata \ roaming \ code \ user \的文件夹中(在Windows PC上)。如何更改该文件夹?想将visual studio代码片段放在onedrive共享文件夹中。

感谢,

1 个答案:

答案 0 :(得分:1)

I don't think you can change the snippets folder, but you could move your folder to OneDrive and then make a symlink in its place.

move "C:\Users\<user>\appdata\roaming\code\user\" "C:\Users\<user>\OneDrive\code\"
mklink /d "C:\Users\<user>\appdata\roaming\code\user\" "C:\Users\<user>\OneDrive\code\user\"