Keil Logo

Templates Window

Template Window   To speed up code writing, code templates can be defined here for any kind of often used structures.

Usage in the editor

To use the code templates defined here in the editor, start writing the first couple of characters and then use CTRL - SHIFT - SPACE to add the complete code template:

Start using the code template

Press CTRL+SHIFT+SPACE

Code template inserted

Alternatively, double-click an item in the Templates tab to insert the template at the current cursor position.

Configuring and adding code templates

To change the current templates or add new custom code templates, invoke the context menu:

Templates Tab

The configuration dialog opens:

Configure templates

New (Insert) Use the 'New (Insert)' button to create a new entry in this list:

New template

Enter the code template's name and the code and press OK:

Template example

Use the code template as described above. Refer to Configure Templates for more information.

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.