Menu

#346 Make the "new class" templates editable

open
nobody
None
5
2012-09-26
2005-01-20
No

When creating new class, the program generates .cpp and
.h files which code in both of them, including comments
are and such.

Those templates should be editable, so that everyone
can change the comments and coding style to what one
wishes.

The templates could have one or more tags that will be
replaced with dynamic content during the creation of
the class, for example:
<class_name> For example "MyClass"
<date format="Y-m-d"> For example "2005-01-20"
<include_guard_macro_name> For example "MYCLASS_H"

This would help people a lot, because almost always the
default templates don't fit for everyones needs and the
basic consept for this shouldn't be too hard to make.
One of the problems will be the
<include_guard_macro_name>, since everyone won't like
the classname + underscore + h -style. But at first
stage the macro name could be that way, untill a better
solution is invented and implemented.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.