<type>documentation</type>
<domain>refactoring</domain>
<id>import</id>
<title>Add Import Statement</title>
<date>$Date: 2006-05-24 22:53:07 -0400 (Wed, 24 May 2006) $</date>
<version>$Revision: 13098 $</version>
<product>pro+</product>

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 <ref:edit/auto-completion>`__ for details.

**Imports Tool**

To get an overview of all the imports in a file, see also the `Imports Tool
<ref:refactoring/imports-tool>`__.
