Skip to content

Instantly share code, notes, and snippets.

@sfengyuan
Created December 19, 2017 05:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sfengyuan/87250f8a7ae0c55ee15716f3138eb1fa to your computer and use it in GitHub Desktop.
Save sfengyuan/87250f8a7ae0c55ee15716f3138eb1fa to your computer and use it in GitHub Desktop.
Sync sublime text, vs code, cmder with dropbox on windows
:: Ensure the two sublime text folders are moved into drobox first.
:: Sublime text uses links to work.
mklink /j "D:\Program Files\st3\Data\Packages" "E:\Dropbox\st\Data\Packages"
mklink /j "D:\Program Files\st3\Data\Installed Packages" "E:\Dropbox\st\Data\Installed Packages"
:: Dropbox uses links to sync vs code.
:: In vs code, custom keymap should be done with keybindings.json, otherwise they won't be saved to dropbox.
mklink /j "E:\Dropbox\code\User" "%appdata%\Code\User"
mklink /j "E:\Dropbox\code\.vscode" "%USERPROFILE%\Code\.vscode"
:: Ensure the cmder config is moved into Dropbox first.
:: Cmder uses links to work.
mklink /j "D:\Program Files\cmder\config" "E:\Dropbox\cmder\config"
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment