Created
August 11, 2019 21:52
-
-
Save mturilin/942455476c55d27f0050792c10e6b516 to your computer and use it in GitHub Desktop.
Duplicate line for XCode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo subl /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/IDETextKeyBindingSet.plist | |
add the following: | |
<key>Customized</key> | |
<dict> | |
<key>Duplicate Lines</key> | |
<string>selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:</string> | |
<key>Duplicate Current Line</key> | |
<string>moveToBeginningOfLine:, deleteToEndOfLine:, yank:, insertNewline:, moveToBeginningOfLine:, yank:</string> | |
</dict> | |
Go to XCode preferences and search for "Duplicate line" command in key bindings to assign the shortcut. I use Shift-Ctrl-D. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment