Home » Language IDEs » Java Development Tools (JDT) » newbie question - formating of Java files
newbie question - formating of Java files [message #3825] |
Thu, 24 April 2003 08:25  |
Eclipse User |
|
|
|
Hi *,
I need to format declarations of method in style:
void aMethod(int a, int b,
int c, int d) {
}
but eclips formats it as follows:
void aMethod(
int a,
int b,
int c,
int d) {
}
Do you know, how one can change this behaviour?
Thanks in advance.
L.
|
|
| | |
Re: newbie question - formating of Java files [message #6400 is a reply to message #3825] |
Sat, 26 April 2003 01:09   |
Eclipse User |
|
|
|
It sounds to me we need some sort of formatting template, where by you can
specify how a statc { } initializer, a method signature, and so forth is
defined. By saving these templates, users can set up their own, possibly for
different types of files. .java is most common, but it would be nice if
things like this could be done with .jsp, .html, .xml, .c etc.
"lubos vrba" <lubos.vrba@seznam.cz> wrote in message
news:b88l2l$sv0$1@rogue.oti.com...
> Hi *,
> I need to format declarations of method in style:
>
> void aMethod(int a, int b,
> int c, int d) {
> }
>
> but eclips formats it as follows:
> void aMethod(
> int a,
> int b,
> int c,
> int d) {
> }
>
> Do you know, how one can change this behaviour?
> Thanks in advance.
> L.
>
>
|
|
|
Re: newbie question - formating of Java files [message #7362 is a reply to message #6400] |
Mon, 28 April 2003 10:16  |
Eclipse User |
|
|
|
This is on our plate for some 3.0 release... we want to be able to support
various alignment favors...
"Kevin" <supreme_java_guru_1@yahoo.com> wrote in message
news:b8d4er$71r$1@rogue.oti.com...
> It sounds to me we need some sort of formatting template, where by you can
> specify how a statc { } initializer, a method signature, and so forth is
> defined. By saving these templates, users can set up their own, possibly
for
> different types of files. .java is most common, but it would be nice if
> things like this could be done with .jsp, .html, .xml, .c etc.
>
> "lubos vrba" <lubos.vrba@seznam.cz> wrote in message
> news:b88l2l$sv0$1@rogue.oti.com...
> > Hi *,
> > I need to format declarations of method in style:
> >
> > void aMethod(int a, int b,
> > int c, int d) {
> > }
> >
> > but eclips formats it as follows:
> > void aMethod(
> > int a,
> > int b,
> > int c,
> > int d) {
> > }
> >
> > Do you know, how one can change this behaviour?
> > Thanks in advance.
> > L.
> >
> >
>
>
|
|
|
Goto Forum:
Current Time: Thu May 08 10:58:23 EDT 2025
Powered by FUDForum. Page generated in 0.26083 seconds
|