Up to Xcode 8.0, you could configure the IDETextKeyBindingSet.plist file. However, now it seems that modifying this file causes Xcode to stop working normally (for example, the arrow keys stop working), and it seems that creating your own keyboard shortcuts is no longer possible.
Xcode has never had duplicate lines and insert labels. Previously, you could add them to IDETextKeyBindingSet.plist, adding the following to the right places:
<key>Insert New Line Below</key> <string>moveToEndOfLine:, insertNewline:</string> <key>Insert New Line Above</key> <string>moveUp:, moveToEndOfLine:, insertNewline:</string> <key>Duplicate Current Line</key> <string>selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:</string> <key>Delete Current Line</key> <string>selectLine:, delete:</string> <string>selectLine:, delete:</string>
Does anyone know how to achieve the same in Xcode 8.0 or higher?
I wonder if developers use Apple Xcode? And if they check Kara? Or are they prohibited from doing this under employment contracts?
UPDATE: In Xcode 9.x, it seems to work again.
UPDATE: In Xcode 10.0, it is broken again.
UPDATE: In Xcode 10.1, it still does not work, and copying / pasting partially does not work, that is, it does not always work. (I'm still in the High Sierra)
xcode8
zeeshan
source share