Add Import Statement
The Add Import Statement operation adds an import statement to the current file, within the selected scope. The statement should start with import or from and include the name or names to import. To add the statement, press Enter or click on the Add Import Statement button.
After it completes, the add import statement operation can be undone with the Revert button in the Refactoring tool.
Auto-Import with the Auto-completer
Note that in most cases using the auto-completer's auto-import feature is an easier way to add imports while you are typing new code. See Auto-Imports in Auto-completion for details.
Imports Tool
To get an overview of all the imports in a file, see also the Imports Tool.