Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>My most commonly used features are</p> <p><kbd>ctrl</kbd>+<kbd>1</kbd> quick-fix / spell-checker</p> <p>opening files</p> <ul> <li><kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>t</kbd> load class file by classname</li> <li><kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>r</kbd> load any file by filename</li> </ul> <p>matches are made on the start of the class/filename. start your search pattern with a * to search anywhere within the filename/classname.</p> <p>Formatting</p> <ul> <li><kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>f</kbd> Format source file (set up your formatting style in Window | preferences | java | code style | formatter)</li> <li><kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>o</kbd> Organise imports</li> </ul> <p>Generated code</p> <ul> <li><kbd>alt</kbd>+<kbd>s</kbd>,<kbd>r</kbd> to generate getters and setters</li> <li><kbd>alt</kbd>+<kbd>s</kbd>,<kbd>v</kbd> to insert method signatures for overidden methods from superclass or interface</li> </ul> <p>Refactorings</p> <ul> <li><kbd>alt</kbd>+<kbd>shift</kbd>+<kbd>l</kbd> Extract text-selection as local variable (really handy in that it determines and inserts the type for you.</li> <li><kbd>alt</kbd>+<kbd>shift</kbd>+<kbd>m</kbd> Extract text-selection as a method</li> <li><kbd>alt</kbd>+<kbd>shift</kbd>+<kbd>i</kbd> inline selected method</li> </ul> <p>Running and debugging.</p> <p><kbd>alt</kbd>+<kbd>shift</kbd>+<kbd>x</kbd> is a really handy prefix to run stuff in your current file.</p> <ul> <li><kbd>alt</kbd>+<kbd>shift</kbd>+<kbd>x</kbd>, <kbd>t</kbd> run unit tests in current file</li> <li><kbd>alt</kbd>+<kbd>shift</kbd>+<kbd>x</kbd>, <kbd>j</kbd> run main in current file</li> <li><kbd>alt</kbd>+<kbd>shift</kbd>+<kbd>x</kbd>, <kbd>r</kbd> run on server</li> </ul> <p>There are more. The options are shown to you in the lower-right popup after hitting <kbd>alt</kbd>+<kbd>shift</kbd>+<kbd>x</kbd>.</p> <p><kbd>alt</kbd>+<kbd>shift</kbd>+<kbd>x</kbd> can be switched for <kbd>alt</kbd>+<kbd>shift</kbd>+<kbd>d</kbd> in all the above examples to run in the debugger.</p> <p>Validation</p> <p>As of the recent Ganymede release, you can now switch of validation in specified files and folders. I've been waiting for this feature for ages.</p> <ul> <li>Go to Project | Properties | Validation</li> <li>click on the ... button in the settings column of the validator you want to shut up</li> <li>Add a rule to the <em>exclude group</em></li> </ul> <p>code navigation</p> <ul> <li>hold down <kbd>ctrl</kbd> to make all variables, methods and classnames hyperlinks to their definitions.</li> <li><kbd>alt</kbd>+<kbd>left</kbd> to navigate back to where you clicked <kbd>ctrl</kbd></li> <li><kbd>alt</kbd>+<kbd>right</kbd> to go "forwards" again</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload