Creating and Customizing Code Templates
See Also
To customize the list of code templates:
-
Choose Tools > Options.
-
Click Editor and select the Code Templates tab.
- Select C from the Language drop-down list to
display the code template list for C, or select CPLUSPLUS to select the
list for C++.
-
Edit, create, and remove templates according to your wishes.
- If you want to change a code template, select a code template from
list and edit the Expanded Text field.
-
If you want to add a new code template, click New.
Special Code Template Syntax
When you use the Options window to create code templates, the construct
${cursor} indicates where the insertion point should go after the code snippet
has been added to your code.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.