luso
luso

Reputation: 3000

PhpStorm/Symfony: Automatically import dependencies

I see there is a Ctrl+Alt+O command in PHPStorm to import dependencies similar to Ctrl+Shift+O in Eclipse, but:

  1. It doesn't import missing Symfony dependencies
  2. Only rearranges already imported dependencies and remove duplicates (sometimes)

Is there a way to make it behave more like Eclipse for Java?

Upvotes: 1

Views: 433

Answers (1)

ReservedDeveloper
ReservedDeveloper

Reputation: 414

I believe the setting you're looking for is 'Auto-Import'. I tend to check off both for file and namespace scope.

Alt+Enter (*nix, Windows) over a missing class will also import it if you notice while in line.

Upvotes: 1

Related Questions