Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse C/C++ Developer Guide
Previous Page Home Next Page

Templates

Templates are sections of code that occur frequently enough that you would like to be able to insert them with a few keystrokes. This function is known as Content Assist; the sections of code that are inserted are known as templates.

To input an existing Content Assist template into a file, such as one for an if statement, type the initial character ("i" in this case), then press Ctrl+Space. The templates that begin with that character appear. Double-click on a template to insert it into a file.

You can edit existing Code/Content Assist templates or create new ones. From the menu bar choose Window > Preferences > C/C++ > Editor > Templates.

Related concepts
CDT Overview

Related tasks
Creating and editing templates
Using templates
Importing and exporting templates

Related reference
Edit menu
Content Assist page
Templates page

Red Hat Copyright Statement
 IBM Copyright Statement


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire