User Tools

Site Tools


eclipse

This is an old revision of the document!


Eclipse

Configuration

Organise Imports

  • Automatically organise imports: Ctrl+Shift+O
  • Static import: Ctrl+Shift+M

To exclude annoying packages or classes when doing automatic organisation of imports with Ctrl+Shift+O create a a “Type Filter” under Windows → Preferences → Java → Appearance → Type Filters.

Most annoying for me are JUnit 3, awt, Joda time:

java.awt.*
junit.*
org.joda.*

Source: http://blog.vogella.com/2009/04/01/eclipse-organize-imports-filter

Troubleshooting

eclipse.1470399120.txt.gz · Last modified: 2016/08/05 14:12 by mstraub