Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Two C++ template questions
Two C++ template questions [message #66185] Tue, 08 April 2003 00:04
Eclipse UserFriend
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?
Previous Topic:Question on tabs and auto code indentation
Next Topic:How to tell eclipse that my makefile is in a subdirectory?
Goto Forum:
  


Current Time: Thu May 08 23:19:14 EDT 2025

Powered by FUDForum. Page generated in 0.03176 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top