xcodexcode9file-templates

How can I place my custom file templates to the top?


Using Xcode 9.

I have created several custom file templates.

When creating new files, the dialog box shows my custom templates at the bottom.

How can I get them to show at to top?


Solution

  • Under

    ~/Library/Developer/Xcode/Templates/File Templates/
    

    ...rename the folder named Custom to Source. That will move your custom file templates to the Source section, which is on the top.

    "Source" category in the new file dialog