Hello
1)
When I press ctrl+shift+f to reformat the code, it goes like that:
void method() {
for (...) {
}
}
I prefer to have it reformatted as:
void method()
{
for (...)
{
}
}
How can I set this up?
2)
Does netbeans editor support virtual spaces?
Like when you move the cursor freely w/o the need to have characters at
that line.
Cause the IDE will move the cursor to the last character in a line if
you scroll from a longer line to a shorter line
Regards,
Elias
Thomas Kellerer - 10 Aug 2006 08:47 GMT
> I prefer to have it reformatted as:
> void method()
[quoted text clipped - 5 lines]
>
> How can I set this up?
Tools -> Options -> Editor, then click on the "Indention" tab
Thomas
lallous@lgwm.org - 10 Aug 2006 12:45 GMT
Hello Thomas
Can you be more specific on that option?
There's an option that reads: "Insert new line before braces", it works
but with I press ctrl+shift+f to reformat, the old identing still
applies.
Hope someone can suggest something that works.
Regards,
Elias
> > I prefer to have it reformatted as:
> > void method()
[quoted text clipped - 9 lines]
>
> Thomas
Kroll, Michael - 10 Aug 2006 13:03 GMT
Hi,
which Version of NetBeans do you use ?
In the moment I use NetBeans 5.0 and 5.5dev (Java 1.5.0_07) and it
work's fine.
It do the thinks that do you want.
Regards
Michael

Signature
German Netbeans, GlassFish and Java-Forum
http://www.netbeans-forum.de
lallous@lgwm.org - 14 Aug 2006 10:58 GMT
Hello Michael,
I am using 4.1, what options specifically you set so that you change
the code formatting as per the original thread?
--
Elias
> Hi,
>
[quoted text clipped - 9 lines]
> German Netbeans, GlassFish and Java-Forum
> http://www.netbeans-forum.de
bugbear - 10 Aug 2006 12:56 GMT
> Hello
>
[quoted text clipped - 13 lines]
> }
> }
Whilst indenting in 'C' was matter of local
preference, habit or taste, indenting in
Java has a documented standard.
http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html
And (IMHO) (almost...) any standard is better
than a free for all, especially in the era
of shared and/or open source.
BugBear