for Windows and Linux
for OS X
⌘, or ⌘,⌘, or ⌘,⌘, or ⌘,⌥ F7, ⌥F7 or ⌥F7^ ⌥ S, ⌃⌥S or ⌃⌥S
Xml
| Show import pop-up | Automatically display an import pop-up dialog box when typing the name of an unbound namespace. |
|---|
Java
| Insert imports on paste | Use this drop-down list to define how IntelliJ IDEA will insert imports for pasted blocks of
code, if they contain references to classes that are not imported into the target class.
The available options are:
If you skip an import suggested in the Ask mode or choose the None mode, the non-imported classes will be red-highlighted and an import pop-up window will appear to help you create import statements using the ⌥⏎ or ⌥⏎⌥⏎ or ⌥⏎⌘1 or ⌘1⌥ Enter, ⌥⏎ or ⌥⏎⌥ Enter, ⌥⏎ or ⌥⏎ keyboard shortcut. |
|---|---|
| Show import pop-up | Automatically display import pop-up dialog box when typing the name of a symbol that lacks import statement. |
| Optimize imports on the fly | Select this check box to have have the Optimize Imports operation automatically performed for your files. |
| Add unambiguous imports on the fly | Select this check box to have IntelliJ IDEA automatically add imports that can be added without user intervention. |
| Exclude from Import and Completion | In this area, create a list of packages and classes that should not be automatically included in
the import statements.
Note that you can exclude packages and classes both on the project level and on the IDE level. This can be done in the cells of the Scope column:
Use:
|
TypeScript
| Show import pop-up | Automatically display import pop-up dialog box when typing the name of a symbol that lacks import statement. |
|---|---|
| Merge imports for symbols from the same module | |
| Use paths relative to tsconfig.json |
When this check box is selected, IntelliJ IDEA calculates import paths using the tsconfig.json file as the root.
When this check box is cleared, IntelliJ IDEA calculates import paths relative to the project root.
For example, if your project is structured as follows:
import {ClassName} from 'directory_2/file_2' import {ClassName} from '../directory_2/file_2' |
Jsp
| Add unambiguous imports on-the-fly | Select this check box to have IntelliJ IDEA automatically add imports that can be added without user intervention. |
|---|
Scala
|
This table is only available when Scala plugin is downloaded and installed. The plugin is not bundled with IntelliJ IDEA, but it can be installed from the JetBrains plugin repository as described in Installing, Updating and Uninstalling Repository Plugins and Enabling and Disabling Plugins. | |
|---|---|
| Insert imports on page | Use this drop-down list to define how IntelliJ IDEA will insert imports for pasted blocks of code, if they contain references to
classes that are not imported into the target class. The available options are:
If you skip an import suggested in the Ask mode or choose the None mode, the non-imported classes will be red-highlighted and an import pop-up window will appear to help you create import statements using the ⌥⏎ or ⌥⏎⌥⏎ or ⌥⏎⌘1 or ⌘1⌥ Enter, ⌥⏎ or ⌥⏎⌥ Enter, ⌥⏎ or ⌥⏎ keyboard shortcut. |
| To disable import import pop-up, use Java settings | Refer to the same options in the settings for Java. |
| Add unambiguous imports on the fly | Select this check box to have IntelliJ IDEA automatically add imports that can be added without user intervention. |
| Optimize imports on the fly | Select this check box to have have the Optimize Imports operation automatically performed for your files. |
PHP
|
This table is only available when PHP plugin is downloaded and installed. The plugin is not bundled with IntelliJ IDEA, but it can be installed from the JetBrains plugin repository as described in Installing, Updating and Uninstalling Repository Plugins and Enabling and Disabling Plugins. | |
|---|---|
| Enable auto-import in file scope | Select this check box to have IntelliJ IDEA automatically import PHP namespaces, add use statements, and complete short class names on the fly, when you are typing in a class or file that does not belong to any specific namespace. By default, the check box is cleared. |
| Enable auto-import in namespace scope | Select this check box to have IntelliJ IDEA automatically import PHP namespaces, add use statements, and complete short class names on the fly when you are typing in a class or file that belongs to a certain namespace. The check box is selected by default. |

(
(