Auto Import
for macOS
Ctrl+Alt+S
XML
Show import popup | Automatically display an import popup dialog box when typing the name of an unbound namespace. |
TypeScript/JavaScript
Add ES6 imports on code completion |
|
Add TypeScript imports automatically | Select this checkbox if you want PhpStorm to generate import statements in TypeScript code. Use the checkboxes below to choose when import generation will be invoked.
|
PHP
Enable auto-import in file scope | Select this checkbox to have PhpStorm 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 checkbox is cleared. |
Enable auto-import in namespace scope | Select this checkbox to have PhpStorm 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 checkbox is selected by default. |
Treat symbols from the global space | In this area, configure auto-import from the global namespace separately for classes, functions, and constants.
|