Wayne Hartman
Wayne Hartman

Reputation: 18497

Is there a way to export Xcode key bindings?

I have a mac at work and want to sync my key bindings at home to it. I don't see an export button in the Preferences menu. Is there some other way to export my custom key bindings?

Upvotes: 41

Views: 11905

Answers (4)

self.name
self.name

Reputation: 2391

From Xcode 5 to Xcode 15 the correct folder you should backup is ~/Library/Developer/Xcode/UserData where you'll find the following items:

  • /Code Snippets Your user generated code snippets: NSHipster on XCode Snippets
  • /FontsAndColorThemes Any default themes you've modified: XCode 5 Themes
  • /KeyBindings Default.keybindings which you can open with xcode (xml/plist): keybindins in xcode 5
  • IDEDocumentationWindow.xcuserstate
  • IDEOrganizerWindowController.xcuserstate
  • IDEPreferencesController.xcuserstate 3 Files that maintain the state for the documentation, organizer and preferences windows.

Upvotes: 56

Johannes Knust
Johannes Knust

Reputation: 1021

IN Xcode 8.x.x the keys bindings are still here

~/Library/Developer/Xcode/UserData/KeyBindings/

Upvotes: 13

TPoschel
TPoschel

Reputation: 3872

In XCode 4.0.2 the key bindings are found in ~/Library/Developer/Xcode/UserData/KeyBindings/

In Xcode 4.3.x and 5.0 the key bindings are in the same place.

Upvotes: 18

JWWalker
JWWalker

Reputation: 22717

You'll find files in ~/Library/Application Support/Xcode/Key Bindings. I imagine you can just copy one of these files and put it in the corresponding place on another machine.

Upvotes: 2

Related Questions