Two C++ template questions [message #66185] |
Tue, 08 April 2003 00:04 |
Eclipse User |
|
|
|
1) Are there any additional keywords or other special syntax beyond what
the 'Insert Variable' dialog box shows? I'd like to insert the following
text for new header files.
#ifndef __HEADER_NAME__
#endif
If the new header is named 'foo.h', I assume ${file} == 'foo.h' or 'foo'.
I need a variable that will insert 'FOO' or 'FOO_H'. Something like
${FILE}.
2) Is there a way to associate a template with a brand new .h or .cpp
file. That is, cause the template text to be inserted automatically when
creating a new file? I am guessing that there is a way, but I haven't
found it.
PS) I am not able to get templates to work at all at the moment
(Ctrl-Space does nothing), but it looks like that is a known problem right?
|
|
|
Powered by
FUDForum. Page generated in 0.03176 seconds