Many posts and solutions add 3 different commands to IDETextKeyBindingSet.plist
, but only Duplicate Lines
is currently required.
Delete Line
already exists in Xcode 11, just add a keybind to it.Duplicate Current Line
is not necessary because the solution bellow works correctly if the cursor is in a line or if multiple lines are selected. In both cases, it has some benefits over commands found in older posts: the clipboard is not touched, and a single undo reverts the change.
- Open below directory in Finder with Cmnd + Shift + G