Keil™, An ARM® Company

µVision® IDE & Debugger

This feature works with...
ARMC166C251C51Eval

Editor Templates
New! in µVision3

Editor Templates are text block templates the µVision editor can insert into files you edit. Templates may be user-defined and customized for your particular development environment.

Function Navigator Menu Open the Templates tab from the Project Workspace to view the available templates. You may hover the mouse over a template to preview it.

To insert a template into an editor window, double-click the template name.

Function Navigator Menu Templates may be used for just about any content from language constructs (for and while loops, if statements, and complex function invocations) to source file headers.

They provide an easy way to ensure style and content consistency.

To edit or create your own templates, open the context menu in the Templates tab and select Configure Templates from the menu.

Editor Configuration Button Or, you may click the Configuration button on the toolbar to open the Editor Configuration dialog and select the Templates tab.

Function Navigator Menu

While editing template insertion text, you may use the vertical-bar character ('|') to specify the placement of the cursor after the template is inserted.