The following table shows how to accomplish some common tasks and gives you some tips for working in the IDE's Source Editor.
To perform this task | Follow these steps |
---|---|
Handle the automatic insertion of quotation marks, parentheses, and so on. |
When you type a character that typically is used in pairs (such as a quotation mark or a parenthesis, the IDE also automatically inserts the closing character (such as another quotation mark or the closing parenthesis). If you find this distracts your typing, you can simply type the closing characters as you would normally. The IDE will use the closing character that you type and delete the character that it inserted. |
Format code automatically with consistent indentation. |
|
Find the appropriate code element (class, method, or field) and insert it into your code. |
|
Insert a commonly used code snippet. |
|
Quickly insert a word that you have already typed elsewhere. |
For example, consider the following code: BufferedReader br = new BufferedReader(...) You can save yourself several keystrokes by doing the following:
See Using the Word Match Feature for more information. |
Go to the Java source for the identifier the insertion point is on. |
|
Go to a Java file via hyperlinks. |
|
Go to a Java class. |
|
Jump to the declaration for the Java method or field the insertion point is on. |
|
Go to a specific method or field in the currently displayed Java class. |
|
Jump back and forth among areas of code in which you have been working. |
|
Bookmark a line of code. |
|
Maximize the Source Editor. |
Do one of the following:
|
Revert a maximized Source Editor to its previous size. |
Do one of the following:
|
Display line numbers. | Choose View > Show Line Numbers. |
View two files simultaneously. |
|
Split the view of a single file. |
|