Key bindings in Xcode 5

梦想的初衷 提交于 2019-12-01 06:06:46

问题


I used to do this: Xcode duplicate line

But IDETextKeyBindingSet.plist doesn't exist anymore.

There is a folder called "KeyBindings" with a blank text file in it.

So how do we set up key bindings now?

Specifically I just want command-D to duplicate the line the cursor is in, which is a basic functionality of every other IDE except Xcode.


回答1:


The KeyBindings directory stores just per-user key bindings for already available operations in Xcode. On the other hand, the IDETextKeyBindingSet.plist lets you add an operation to Xcode itself (and afterwards put a key binding into your KeyBindings dir).

Just put the IDETextKeyBindingSet.plist file again into /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources (the location is the same as in Xcode 4). And make yourself a backup, since each Xcode upgrade will default your customized bindings (if there's a better solution for Xcode upgrades, I'm all ears).



来源:https://stackoverflow.com/questions/19056518/key-bindings-in-xcode-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!