Using Code Templates and Macros

See Also

Code templates and macros provide shortcuts for typing frequently used keystroke combinations and strings.

The Source Editor has a set of customizable code templates for common snippets of code, such as combinations of Java keywords.

You can generate snippets from these code templates in either of the following ways:

You can also define and run more complex macros in the Source Editor. Macros use a specific keyboard shortcut to generate a frequently used series of keystrokes. For example, you can type Ctrl-J, D in Java files to run a macro that selects the identifier under the caret and inserts debugging code on the previous line to print the value of that identifier.

See Also
Inserting Code From a Template
Recording a Macro
Editing a Macro
Running a Macro
Sharing Source Editor Settings

Legal Notices