How do you duplicate a file in XCode?

前端 未结 7 1206
名媛妹妹
名媛妹妹 2021-02-05 00:18

Anyone know a good solution?

So far I have not found a better way than using File>New file and then copying contents from old file to new.

You can probably dupli

7条回答
  •  花落未央
    2021-02-05 00:54

    "Duplicate" is enabled for targets in XCode (pretty much nothing else that I know of).

    If you have a substantial number of subclasses with the same starting point to replicate, why not make a class template from it? Then you can just use file->New to make new instances. It's fairly quick to do.

    This is probably the simplest example:

    http://www.macresearch.org/custom_xcode_templates

    Otherwise, I'd simply duplicate the files in Finder as many times as you need, name them, and drag them into XCode en-masse.

提交回复
热议问题