This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
For now, when you try to use some namespaced class it will add a fully qualified name (of course if there is no use statement already) Example: We have a class NS\Test\MyClass; $myClass = new MyCl[ctrl+space] -> \NS\Test\MyClass() It will be cool to have an availability to insert a short name + generate use "in 1 click". Because now we have to insert full name, then remove namespace portion, click [alt+enter] and choose "generate use". Example: $myClass = new MyCl[ctrl+space] -> \NS\Test\MyClass() OR MyClass() + generate use NS\Test\Myclass;
You can generate use statements from used classes by a new "Fix Uses..." action. But auto-generating of use statements would be great too.
NetBeans 8.2 already has this feature: new MyCl|Ctrl+Space will autocomplete new MyClass only if MyClass is already imported (or in the same namespace).