Bug 512512

Summary: Cannot select a new/custom code template to be used to generate a new C++ class without modifying the default code template.
Product: [Tools] CDT Reporter: Martin Scout <schopm>
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: trivial    
Priority: P3 Keywords: consistency, noteworthy, polish, ui
Version: Next   
Target Milestone: ---   
Hardware: All   
OS: Mac OS X   
URL: http://stackoverflow.com/questions/42316631/how-can-you-set-a-new-code-template-to-be-used-to-generate-a-new-c-class-witho
Whiteboard: Missing Feature

Description Martin Scout CLA 2017-02-21 11:41:31 EST
When using New... to create a new code template instead of overwriting the default code template for Files, there is no option to set this code template as default to use when generating a new class file. I want to use "#pragma use" instead of an include guard and created a new header template.

Upon selecting new Header File, there is a beautiful Template box,
but this template box(es, for both header as source files) is not available in the new class file screen:
Header Creation: https://i.stack.imgur.com/eDmNj.png
Class Creation: https://i.stack.imgur.com/ANguc.png

The fix would be to simply allow the user from changing both header and source templates from the class creation menu.

Additional Info:
===Code Templates Reference===
   Path: Eclipse > Preferences > C/C++ > Code Style > Code Templates > Files >
         (C/C++ Source/Header Files)


===VERSION===
   Eclipse IDE for C/C++ Developers
   Version: Neon.2 Release (4.6.2)
   Build id: 20161208-0600