automatic prompt function: The General keyword, has the hint content like SYSO is System.out.println (); For loop and its shortcut key is (alt+/)
Format code: Sometimes the code is much more chaotic words can be formatted with shortcut keys (ctrl-shift-f)
Introduction Package Code: can quickly introduce package shortcut key Yes (Ctrl+shift+o)
Shortcut keys can be used when generating get/set or ToString methods Shift+alt+s
Line Numbers to display the lines number of the code, select the Window menu-->preferences-->general-->editors-->text Editors-Select Show line numbers or you can also right-click on the left edge and select Show row numbers.
change font and size: Click Window-->preferences-->general-->appearance-->colors and Fonts expand Java folder Select Java Editor Text Font then click Edit to make edits
encoding Support: to enable Unicode support, select Window-->preferences-->general-->workspace-Text file encoding--> UTF-8. This setting is used for file encoding of the default character set, similar to the virtual machine's command-line option-dfile.encoding= UTF-8. The commonly used character set is the Unicode utf-8,utf-16 (with BOM). The other character sets are us-ascii,iso-8859-1.
compare two files: in the Project package resource, select two files (hold CTRL key) right--Compare with
Useful Eclipse shortcut key excerpt:
F3: Go to the declaration of the selected variable/method.
Ctrl-shift-g: Searches for all references to the highlighted variable/method in the workspace.
Alt-shift-r key: Quickly open a file
Ctrl+d: Delete When moving forward
Ctrl+alt+↓ Copy the current row to the next row (replication incremented)
Ctrl+alt+↑ Copy the current line to the previous row (replication incremented)
Alt+↓ the current line and the next line of interaction (especially useful, can be omitted first cut, then pasted)
Alt+↑ the current line and the upper row interaction position (IBID.)
Alt+enter displays the properties of the currently selected resource (project, or file or file)
Ctrl+q positioning to the last edited place
ctrl+/comment on the current line, and then uncomment it
Ctrl+t quickly displays the inheritance structure of the current class
Ctrl+w Closing the current editer
Ctrl+k the selected word quickly navigates to the next
Ctrl+e quickly displays the drop-down list of files currently being edited (if the current page is not displayed in bold)
Universal Fix shortcut key: Ctrl+1 Sometimes the code will prompt an error. It is possible that the package did not lead to other problems. Use this shortcut to see the problem and fix it.
Sometimes you want to put a piece of code in a for loop, if statement while loop, try catch exception caught inside can use Shift+alt+z