Is there a way to export Xcode key bindings?
I have a mac at work and wan开发者_如何学Got 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?
From Xcode 5 to Xcode 12 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.
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.
IN Xcode 8.x.x the keys bindings are still here
~/Library/Developer/Xcode/UserData/KeyBindings/
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.
精彩评论