Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 12:25 Go to next message
Lubos is currently offline LubosFriend
Messages: 9
Registered: July 2009
Junior Member
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 #4838 is a reply to message #3825] Thu, 24 April 2003 20:32 Go to previous messageGo to next message
Eclipse UserFriend
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 #5623 is a reply to message #4838] Fri, 25 April 2003 19:10 Go to previous messageGo to next message
Tom Crosman is currently offline Tom CrosmanFriend
Messages: 70
Registered: July 2009
Member
Watch out though Jalopy is clobbering my jaba doc consistently.

Greg Ferguson wrote:
> 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 messageGo to next message
Kevin Duffey is currently offline Kevin DuffeyFriend
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
Philippe Mulet is currently offline Philippe MuletFriend
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.
> >
> >
>
>
Previous Topic:Cannot set HTTP proxy
Next Topic:single javadoc from multiple projects?
Goto Forum:
  


Current Time: Tue Aug 27 23:54:08 GMT 2024

Powered by FUDForum. Page generated in 0.03614 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top