Pair Completion, Smart Enter, and Smart Semicolons

See Also

When you edit Java classes, the Source Editor does "smart" matching of pair characters such as brackets, parentheses, and quotation marks. When you type one of these characters, the Source Editor automatically inserts the closing character. If you type the closing character yourself, the Source Editor removes the character it added automatically, so the closing character is not duplicated.

In addition, you can:

To turn off the pair matching and smart enter features:

Note You can press Ctrl-Enter to split the current line at the insertion point without moving the insertion point to the next line.
See Also
Configuring the Source Editor
Editing Java Code
Editor Shortcuts

Legal Notices