20

I run Xcode on both my laptop and desktop. I'm constantly tweaking my setup with regards to key bindings.

Rather than try to get both configurations identical by hand, is there any way to create the configuration on one computer and then share it via dropbox (for example) for the other to use? Perhaps by symlinking the laptop's configuration file to one stored on dropbox?

Very curious how others handle this situation.

Martytoof
  • 495
  • 5
  • 10

4 Answers4

22

It looks like the Xcode preference file is now named

~/Library/Preferences/com.apple.dt.Xcode.plist
clemens
  • 16,716
  • 11
  • 50
  • 65
software evolved
  • 4,314
  • 35
  • 45
13

Most of your Xcode settings are in the Preferences file at:

~/Library/Preferences/com.apple.Xcode.plist

This doesn't include templates.

Paul Lynch
  • 19,769
  • 4
  • 37
  • 41
  • And then an automator or apple script utility to copy the dropbox version to the library? – fearmint Apr 05 '10 at 18:47
  • Do you know whether there is anything in the plist that is computer specific, that would make it improper to share across multiple computers? I'll try syncing the two when I get home tonight. Thanks for the advice on the file. – Martytoof Apr 05 '10 at 18:47
  • @JoePasq I was thinking of just moving the com.apple.Xcode.plist to ~/Dropbox, then ln -s ~/Dropbox/com.apple.Xcode.plist ~/Library/Preferences/ Don't know whether that would be less safe than just running an automator script to copy back and forth. – Martytoof Apr 05 '10 at 18:49
  • Doesn't look like symlinking it will work. It seems that Xcode just replaces the symlink with a static file when it writes to it. Thanks anyway. – Martytoof Apr 05 '10 at 21:37
  • 2
    There's also some stuff in `~/Library/Developer/Xcode` (particularly `/UserData`). – devios1 Aug 14 '14 at 00:10
13

As others have mentioned, the location for things like key bindings, color themes, snippets, etc. is here...

~/Library/Developer/Xcode/UserData

This is what I move from machine to machine.

The rest of the files in Library/preferences from the other-mentioned answers are more non-user-specific things. I find I usually don't have to worry about them (translation: I don't miss them if I don't copy them, but key bindings and themes I'm lost without.)

Mark A. Donohoe
  • 28,442
  • 25
  • 137
  • 286
8

To move your Fonts & Colors theme you need to copy

~/Library/Developer/Xcode/UserData/FontAndColorThemes/yourTheme.dvtcolortheme

file from one system to another.

For Xcode preferences as mentioned by one of the answers, you need to copy

~/Library/Preferences/com.apple.dt.Xcode.plist

Community
  • 1
  • 1
Inder Kumar Rathore
  • 39,458
  • 17
  • 135
  • 184