Skip to content

Instantly share code, notes, and snippets.

@batmat
Last active August 29, 2015 14:21
Show Gist options
  • Save batmat/da9b9315d0aefa334d73 to your computer and use it in GitHub Desktop.
Save batmat/da9b9315d0aefa334d73 to your computer and use it in GitHub Desktop.
WIP list of Eclipse tips & tricks (mainly for the Java IDE)

List of tips to cover

  1. Refactoring: Extract method?

  2. Typing: automatically place semicolons

  3. Typing: escape text when pasting into a string literal

  4. Do not always remember the shortcuts? Find any option with Ctrl-Shift-3

  5. Organize imports: how to ignore javadoc

  6. Formatter: don’t touch my manually wrapped lines!

  7. Formatter: don’t touch that part (using begin/end tags). Thx Emmanuel Fontan)

  8. How to quick fix many issues outside of the Clean up menu https://bugs.eclipse.org/bugs/show_bug.cgi?id=351956

  9. Replacing ternary with if/else

  10. Eclipse fav : static imports

  11. JSR305 annotations to help null analysis

  12. JSR305 externally annotated classes (Eclipse Mars)

  13. Save actions: automatic formating

  14. Automatic contextualization inside an instanceof block (auto-add cast)

  15. [Ctrl]-alt-arrow up or down to copy or move lines

  16. Ctrl-Shift-T then CamelCase initials to find classes

  17. Type filters (to filter out java.awt.* for example…​)

  18. Exception variable name in catch blocks

  19. Alt-Shift-x / T for the tests, …​

  20. Alt-Shift-A (thx Olivier Jaquemet), as if Sublime invented it all

  21. Step filtering (thx Sebastien Bordes for the reminder) : be able to filter out stack when debugging (?) (to be tested)

  22. Filtering/choosing which methods to display in the Outline using javadoc’s @category tags (thanks Jordi Barrère).

Include ?

  1. Using p2 Director [inside Docker] to create a customized Eclipse

  2. EGit : staging line by line

Try out

  1. Code Recommenders

  2. JRebel Eclipse Optimizer http://zeroturnaround.com/free/optimizer-for-eclipse/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment