[Xcode] Missing a "Duplicate Lines" command

Originator:CeroceSoft
Number:rdar://34082184 Date Originated:2017-08-25
Status:Open Resolved:
Product:Xcode Product Version:9
Classification: Reproducible:
 
** Steps to Reproduce
There is no direct way to duplicate a selection of lines of codes in Xcode.

** Expected Results
Xcode should include a command to duplicate lines of codes.
- either the lines that are currently selected
- on the one line which the text cursor is on

This could be attached to the "Duplicate" command and its current Command-D shortcut.

** Observed Results
Such a command does not exist.
Duplicating lines requires selecting the lines up to their end, then copy and paste.
- This is a tedious process
- The content of the Pasteboard is lost

Every serious code editor that I know does provide such a command, along with a "Delete Line" command.

** Xcode Version/Build & macOS Version/Build
 Xcode 9, but also every other previous versions of Xcode.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!