Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Code Templates(Using/setting variables for file templates)
Code Templates [message #1787454] Fri, 25 May 2018 15:59
Ken Caron is currently offline Ken CaronFriend
Messages: 3
Registered: August 2013
Junior Member
I am new to eclipse (specifically) and C (somewhat, but now working on a project where I am setting up templates for others on the project to use.

I have successfully added a template to the Files > C Source File, as shown:

<See attached file>

But I don't get anything inserted for the ${includes} nor ${declarations} variables when the template is used.

Is there a place to add specific include file and standard include files, like: stdio.h, stdlib.h, .stdarg.h, etc?
I've looked thru the preference dialog but can't find anything obvious.

I have been successful in using "Properties > C/C++ General > Path and Symbols" to fill in the Include and References tabs to connect to a project with the files needed (mostly include files).

I've tried search and googling but can't find anything about use of ${includes}. If there is a section in a document somewhere that'd be great!

Ken
Previous Topic:Eclipse Oxygen.3, CDT 9.4.3, Gcov plugin, and cygwin GCC 6.4.0
Next Topic:Disable info prints in "Problems window
Goto Forum:
  


Current Time: Wed Sep 19 05:09:33 GMT 2018

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

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

Back to the top