Control + Shift + R = open a specific "resource" , e.g. ExampleClass.java
Project Explorer -> corner down pointing triangle -> Link with Editor (easier to track where you are)
Control + t on an interface method prototype will show subclasses (e.g. Implementation)
Control + l (lowercase L) = goto a line number
Control + Shift + O = auto fill in the "import" of a package
control + pagedown = change (editor) tab to the next tab on the right
control + pageup = change (editor) tab to the next tab on the left
control + f6 = change the (editor) tab to the previously selected tab
Control + * (expand all folded code)
Control + + (expand a single folded code section)
Control + / (turn on/off folding)
Contorl + Home = jump to the beginning of the current file
Contorl + End = jump to the end of the current file
Window -> Preferences and select Java -> Editor -> Content Assist -> Favorites (new Member)
org.junit.Assert.fail
org.junit.Assert.assertTrue
org.junit.Assert.assertFalse
org.junit.Assert.assertEquals
Control + Space to allow Eclipse to "smart auto complete"
Alt + Shift + S -> Generate Constructor() from Fields
-> Generate Getters and Setters
-> Generate toString()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Eclipse -> Windows -> Preferences -> Java -> Code Style -> Formatter
(tabs for Braces, etc. and make sure you save your Customized version with a new name)
@formatter:off
/*
multi-line comment
won't be touched
*/
// @formatter:on
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IDE editor colors, e.g. the font color for a String variable or a comment
Window -> Preferences -> General -> Appearance -> Colors and Fonts
Note that you might also choose a specific language syntax coloring using:
Window -> Preferences -> Java -> Editor -> Syntax Coloring ... Strings
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Eclise Run Time Command Line Parameters
Right Click on a Project -> Run As -> Run Configurations
Under the tree Dropdown you can pick an existing Run Configuration (usually auto created by Project Name)
(Tab) Arguments is where command line parameters can be entered (i.e. F11 Run will now use these)
Right click on a previous Run Configuration to DELETE it (they do not get deleted when the Project is deleted)
Eclipse Import Libraries (intro), right click on the Project Name and choose Build Path