Skip to content

Instantly share code, notes, and snippets.

@cbess
Last active March 16, 2020 06:10
Show Gist options
  • Select an option

  • Save cbess/4444374 to your computer and use it in GitHub Desktop.

Select an option

Save cbess/4444374 to your computer and use it in GitHub Desktop.
Xcode Delete and Duplicate Selected Lines
<key>Customized</key>
<dict>
<key>Delete Line</key>
<string>selectLine:, deleteBackward:</string>
<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>
@lemonlab

Copy link
Copy Markdown

works perfectly, thanks !

@spiridonkopicl

Copy link
Copy Markdown

works on xcode 8 beta, thx

@zeeshanz

zeeshanz commented Oct 2, 2016

Copy link
Copy Markdown

Doesn't work on Version 8.0 (8A218a). Modifying the IDETextKeyBindingSet.plist file results in Xcode not behaving properly, e.g. the arrow keys stop working.

@cbess

cbess commented Dec 17, 2016

Copy link
Copy Markdown
Author

For Xcode 8+, you can now get Text Toolset - Source Editor Extension which has these features and more.

@deda9

deda9 commented Dec 23, 2016

Copy link
Copy Markdown

Awesome worked on Xcode 8.1. Thanks alot

@amine2233

amine2233 commented Feb 27, 2017

Copy link
Copy Markdown

work for Xcode 8.3 Thanks

@hsleedevelop

Copy link
Copy Markdown

Doesn't work on XCode 8.3(8E162) on today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment