Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Two C++ template questions
Two C++ template questions [message #66185] Tue, 08 April 2003 04:04
Shawn McCarney is currently offline Shawn McCarneyFriend
Messages: 11
Registered: July 2009
Junior Member
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: Fri Sep 27 00:02:19 GMT 2024

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

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

Back to the top