Keystroke Savers: Quick Reference

This topic describes ways that you can reduce the number of keystrokes as you type code in the Source Editor.

To perform this task Follow these steps
Finish a line of code without typing matching parentheses, brackets, braces.
  1. Type all of the line of code, except for any closing parentheses and brackets characters. These characters are generated automatically.
  2. Type a semicolon (;). The semicolon and insertion point are automatically moved to the end of the line.

    See Pair Completion, Smart Enter, and Smart Semicolons for related shortcuts.

Complete a Java expression.
  1. Type the first few characters of the expression, such as import javax.
  2. Press Ctrl-Spacebar or Ctrl-\.

    The code completion box opens and displays words that you can use to complete the expression with.

  3. Select a word.
  4. Type Enter to complete the expression and close the code completion box, or type Shift-Enter to complete the expression and keep the code completion box open.
Match a previously typed word.
  • Type the first few characters of the word and press Ctrl-K.

    If a word starting with the same characters is found, the word you are typing is completed to match that word.

  • See Using the Word Match Feature for more variants on word matching.

Use code templates.

Legal Notices