有没有办法导出 Xcode 键绑定?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4200735/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is there a way to export Xcode key bindings?
提问by Wayne Hartman
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?
我有一台 mac 在工作,想将我家里的键绑定同步到它。我在“首选项”菜单中没有看到导出按钮。还有其他方法可以导出我的自定义键绑定吗?
回答by self.name
In XCode 5 the correct folder you should backup is ~/Library/Developer/Xcode/UserData where you'll find the following items:
在 XCode 5 中,您应该备份的正确文件夹是 ~/Library/Developer/Xcode/UserData,您可以在其中找到以下项目:
- /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.
- /Code Snippets 您的用户生成的代码片段:XCode Snippets 上的 NSHipster
- /FontsAndColorThemes 你修改过的任何默认主题:XCode 5 Themes
- /KeyBindings Default.keybindings 您可以使用 xcode (xml/plist) 打开:xcode 5 中的 keybindins
- IDEDocumentationWindow.xcuserstate
- IDEOrganizerWindowController.xcuserstate
- IDEPreferencesController.xcuserstate 3 维护文档、管理器和首选项窗口状态的文件。
回答by TPoschel
In XCode 4.0.2 the key bindings are found in ~/Library/Developer/Xcode/UserData/KeyBindings/
在 XCode 4.0.2 中,键绑定位于 ~/Library/Developer/Xcode/UserData/KeyBindings/
In Xcode 4.3.x and 5.0 the key bindings are in the same place.
在 Xcode 4.3.x 和 5.0 中,键绑定在同一个地方。
回答by John
IN Xcode 8.x.x the keys bindings are still here
在 Xcode 8.xx 中,键绑定仍然存在
~/Library/Developer/Xcode/UserData/KeyBindings/
~/Library/Developer/Xcode/UserData/KeyBindings/
回答by JWWalker
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.
您将在 ~/Library/Application Support/Xcode/Key Bindings 中找到文件。我想您可以复制这些文件中的一个并将其放在另一台机器上的相应位置。