Re: Seeking some autocompletion features

Milos Kleint <[email protected]>
Newsgroups gmane.comp.java.netbeans.user-interface
Message-ID <[email protected]>
ashutosh bhardwaj wrote:

>Hi!!,
>I am looking for two features in netbeans.
>1. I had to keep on writing things like System.out.println and it
>became tedious.Is there any way that I write 'sop' and then press
>[ctrl]+[space] and it will be replace by System.out.println.Is there
>anyway to add user-defined auto completion entries
>for such comman tasks.
>  
>

you can write sout<spacekey>
other abbreviations under Tools/Options dialog, section Editor 
Settings/Java Editor/Abbreviations.

>2.I would like an auto-import feature along with
>auto-complete.i.e.Classes used for defining varaibles and params using
>auto-completion should be imported automatically if they exist in
>project path.I don't like just adding those import statements.
>
>Do they exist?If not can I submit them as feature request?
>  
>
nothing automatical right now AFAIK. the popup in java editor has "Fix 
imports" action that will add/remove import statements according to the 
current state of the class.

Regards

milos Kleint

>
>regards,
>ashutosh
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.