I'm fairly new to NetBeans and, although there are lots of great
features to recommend it, there is one that drives me crazy. It has
to do with the code auto-complete feature. I have a tendancy to write
comments as if I were a team of programmers, eg: '...ok, now we're
going to loop through the result set...'. It's a little silly, but
I've been doing it for 20 years and it's hard to change now.
The problem is that whenever I comment "we're" - or any word ending in
"'re " NetBeans presumes that I'm asking for it to complete the
command, "return" and does the automatic substitution. No matter that
it's a comment. So, my comment becomes, "...ok, now we'return going
to loop through the result set...". It's very annoying.
I've looked through <Tools/Options/Editer Settings/Java Editor>
several times now - but still haven't found the key to stopping this
behaviour. Does anyone know how to stop NetBeans from doing this?
I'm currently using ver 3.5.1.
Thanks!
Arjan Bos - 15 Oct 2004 19:24 GMT
> The problem is that whenever I comment "we're" - or any word ending in
> "'re " NetBeans presumes that I'm asking for it to complete the
[quoted text clipped - 6 lines]
> behaviour. Does anyone know how to stop NetBeans from doing this?
> I'm currently using ver 3.5.1.
In version 3.6 there is Tools/Options/Editor Settings/Java Editor. The
first property there is Abbreviations. One of them is re -> returns. You
might want to delete it. If that is unavailable in 3.5.1, you might want
to upgrade to 3.6.
I started using NetBeans with version 2.something and used every dot
version that was released. I used it with the same codebase and never
had any upgrade issues. So that can't hold you back to use 3.6 (although
there might be other reasons not to upgrade).
HTH,
Arjan

Signature
--
If you really want to contact me, then replace the "I see you" text by
its three letter accronym, hetnet.
Fabricate Diem PVNC, Motto of the Night Watch -- Terry Pratchett
jhludlow - 16 Oct 2004 00:27 GMT
Arjan wrote:
> In version 3.6 there is Tools/Options/Editor Settings/Java Editor. The
> first property there is Abbreviations. One of them is re -> returns. You
[quoted text clipped - 4 lines]
> had any upgrade issues. So that can't hold you back to use 3.6 (although
> there might be other reasons not to upgrade).
Thanks Arjan! Worked like a charm. I never would have found it hidden there.