The Import Management Tool helps you manage external references in a source file. It finds and proposes import statements when applicable, removes unused import statements, and tries to guess what entity unresolved identifiers should identify. With your confirmation, it converts single-name import statements to package import statements, and vice versa. It also recommends whether an import should be handled as an import statement or a fully qualified identifier.
You can configure the Import Management Tool by specifying things like the maximum number of single-name import statements to use before importing a package, the maximum number of fully qualified identifiers in a source file from one package, and a list of well-known packages to search for unresolved identifiers.
To start the Import Management Tool wizard:
![]() |
In addition to using the Import Management Tool, you can generate import statements "on the fly" using the Fast Import feature. Press Alt-Shift-I when the insertion point in the Source Editor is in a class name. |
For help using and configuring the Import Management Tool, see:
Resolving Identifiers
Creating Import Statements
Removing Unused Import Statements
Configuring the Import Management Tool
For more information about using Fast Import, see:
Adding an Import Statement With Fast Import