Home » Language IDEs » Java Development Tools (JDT) » newbie question - formating of Java files
|
Re: newbie question - formating of Java files [message #4838 is a reply to message #3825] |
Thu, 24 April 2003 20:32 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: greg.ferguson.americawest.com
lubos vrba wrote:
> 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.
Go to sourceforge.net and search for jalopy. It's a nice tool that can be
configured to reformat code in multiple ways.
|
|
| |
Re: newbie question - formating of Java files [message #6400 is a reply to message #3825] |
Sat, 26 April 2003 05:09 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Kevin Duffey![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=supreme_java_guru_1%40yahoo.com) Messages: 304 Registered: July 2009 |
Senior Member |
|
|
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 14:16 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Philippe Mulet![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=philippe_mulet%40fr.ibm.com) Messages: 229 Registered: July 2009 |
Senior Member |
|
|
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: Wed Aug 28 02:19:10 GMT 2024
Powered by FUDForum. Page generated in 0.04242 seconds
|