Bug 512512 - Cannot select a new/custom code template to be used to generate a new C++ class without modifying the default code template.
Summary: Cannot select a new/custom code template to be used to generate a new C++ cla...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: Next   Edit
Hardware: All Mac OS X
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL: http://stackoverflow.com/questions/42...
Whiteboard: Missing Feature
Keywords: consistency, noteworthy, polish, ui
Depends on:
Blocks:
 
Reported: 2017-02-21 11:41 EST by Martin Scout CLA
Modified: 2020-09-04 15:24 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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