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:
For example, you can type Psfb, followed by the spacebar, to automatically generate public static final boolean in Java files. See Code Template Abbreviations: Quick Reference for the complete list.
For example, to generate public static final boolean, you can type pu, press Ctrl-Spacebar, press the down arrow key twice, and press Enter.
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.