Organize imports

The following preferences define how the Organize Imports command generates the import statements in a compilation unit.

Organize Imports Preferences

Option

Description

Default

Import order list

This list of prefixes shows the sequential order for packages imported into a Java compilation unit. Each entry defines a block. Different blocks are separated by a spacer line.

java
javax
org
com

New...

Adds a package name prefix to the import order list. In the resulting dialog, type a package name or package name prefix.

n/a

Edit...

Change the name of an existing package name prefix. In the resulting dialog, type a package name or package name prefix.

n/a

Up

Moves the selected package name prefix up in the import order list.

n/a

Down

Moves the selected package name prefix down in the import order list.

n/a

Remove

Removes a package name prefix from the import order list.

n/a

Load...

Load a list of package name prefixes from a file.

n/a

Save...

Save the list of package name prefixes to a file.

n/a

Number of imports needed before .* is used

The number of fully-qualified import statements that are allowed from the same package before <package>.* is used.

99

Do not create imports for types starting with a lower case letter

If enabled, types starting with a lowercase letter are not imported.

On

Related tasks

Managing import statements

Source actions

Legal notices