How can I get Netbeans to use import statements instead of fully qualified class names on autocomplete?


I've moved from PDT to Netbeans recently, and there is something I can't figure out. How do I get the IDE to use 'use' statements at the beginning of a file on autocompleting class names? Like:

use \Foo\Bar\Baz;

class Something extends Baz { /* ... */ }

Instead, if I use autocompletion I get

class Something extends \Foo\Bar\Baz { /* ... */ }

I've checked the code completion settings, but the most promising option (smart) wanted me to first write the imports in order to use autocompletion for short class names. PDT was capable writing that line to the beginning of the file.

23
задан sallaigy 16 May 2011 в 11:56
поделиться