Custom file template with header only

Hey!

I am trying to create a custom file template via File | Settings | Editor | File Templates | Unreal Engine. The problem is that when I run it a new cpp file is also created and I don't want this behaviour. Is there any way to stop it creating the cpp otherwise I have to navigate to it and delete it every time and it is frustrating. Additionally is there any way of creating my own File Templates group with its own icon etc. Similar to the Unreal Engine one that is already there, it would be great to be able to make my own one to add project specific settings to!

Thanks :D

0
3 comments

Hello James,

Thank you for contacting Rider support.
Apologies for keeping you so long without an answer.

Regrettably, there is no option to disable a .cpp file creation in Unreal Engine/C++ file templates. Also, there is no option to create your own File Templates group.
Feel free to create feature requests for such features.

However, you might create your own file template for a .h file from File | Settings | Editor | File Templates | Other Languages so a .cpp file would not be created while using such a template.

Hope it helps.
Should you have any other questions or difficulties, please let me know.

0

Hey,

Thanks for getting back to me. I actually managed to do it by cloning the unreal 'empty' template and then opening the shared settings file and changing by hand. It was a bit annoying but it works for anyone else looking to do this. Just remember to escape special characters as it is in an XML file

0
Hello James,

I am glad to hear that you found a solution.

Should you have any other questions or difficulties, do not hesitate to contact support.
Have a nice day!
0

Please sign in to leave a comment.