create automatic use namespace...
Is there a way to let phpstorm include the needed namespace in the header automatic?
I've seen this in eclipse and would love to do this with phpstorm too.
e.g.
if i write this code:
$foo = new Ragtek\Blog\Entity\Baz();
it changes the code automatic to
use Ragtek\Blog\Entity;
....
$foo = new Baz();
请先登录再写评论。
Hi there,
Please try Settings | Editor | Auto Import | Automatically add 'use' statements
Was this removed in PhpStorm PS-124.373?
I can't find this setting anymore.
EDIT:
the code inspector suggested showed "unnecessary fully qualified name" and then i was able to to "import class" (it sounds strange^^)