Netbeans code replenishment full class + namespace VS "use"

I am using Netbeans 8.0 for PHP

I try to use the code completion function when I print

new EntityM

Netbeans shows: enter image description here

Ok, I got into the first option, then Netbeans generates:

enter image description here

What I want to do: Instead of generating the full class name (namespace + class name), I want Netbeans to add a use statement and a simple class name, this will add:

use \Doctrine\ORM\EntityManager; 

before the class declaration and the generated code will be:

$d = new EntityManager($conn, $config, $eventManager)

Can anyone advise how to do this?

PS: This is how PHPStorm works .

+4
source share
1 answer

IMHO , bugzilla NetBeans. " " , NetBeans FQN, Ctrl + Shift + I, , FQN .

+5

Source: https://habr.com/ru/post/1539096/


All Articles