javascript片段放在名为appdata \ roaming \ code \ user \的文件夹中(在Windows PC上)。如何更改该文件夹?想将visual studio代码片段放在onedrive共享文件夹中。
感谢,
答案 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\"