Cannot Duplicate files in the Project Navigator

Originator:jediknil
Number:rdar://FB7744520 Date Originated:2020-06-20
Status:Open Resolved:
Product:Xcode Product Version:11.5 (11E608c)
Classification:Suggestion Reproducible:N/A
 
I’d expect to be able to duplicate a file in the Project Navigator—whether in a Group or Folder Reference. Within a Folder Reference, this is pretty easy (it should do whatever Duplicate in Finder does), but within a Group there’s a question of target membership and such. A way to sidestep these questions, and make it obvious that this is a new file, is to show the Add File dialog once the file is duplicated, with the original’s targets pre-selected.

Duplicating Groups sounds a little more difficult, but that could be left for later.

Comments

Follow-up comment (by me)

I’ve since found that there’s a Duplicate item in the File menu. I didn’t find it before because I expected it in the Edit menu with the Cmd-D shortcut, but I suppose Cmd-Shift-S is consistent for duplicating files. It should still be in the context menu, though.


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!