I wonder is there any way to make Netbeans work like an Eclipse the way you choose class name from autocompletion list and if use
statement for that class does not exist then Netbeans will generate use
and will use class name without full namespace?
Let me demonstrate what i mean. We have base image with autocomplete.
Current behaviour of Netbeans on when we hit Enter
Desired behaviour of Netbeans
Doing a short research using Google I have found out, that it could be the CTRL
+ SHIFT
+ I
key combination to invoke operation similar to Eclipse's SHIFT
+ O
within Java (to repair imports, if I remember it right).
Check the link where the operation is described.
It should be fine to write down in Your example:
$object = new ClassLoader;
And then hit CTRL
+ SHIFT
+ I
to import the ClassLoader
's namespace as an use
statement...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With