You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Greg Huber <gr...@gmail.com> on 2014/01/31 12:13:51 UTC

java code formatter style.xml for eclipse

Hello,

Is there a standard style.xml for the java code formatter in Eclipse, that
I can import?

Cheers Greg

Re: [struts-dev] Re: java code formatter style.xml for eclipse

Posted by Lukasz Lenart <lu...@apache.org>.
2014-01-31 Greg Huber <gr...@gmail.com>:
> quote:
>
> Eclipse formatting rules are the most valid and reference ones because it
> is impossible to provide perfectly matching formatting configuration for
> IntelliJ IDEA and Netbeans. It is possible and advised to configure
> IntelliJ IDEA to use Eclipse formatting configuration via plugin. :-<

It isn't the most important thing in writing software ;-) Do as you
wish, if someone will be against you will hear that or you'll notice
that in source code :-)


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: [struts-dev] Re: java code formatter style.xml for eclipse

Posted by Greg Huber <gr...@gmail.com>.
quote:

Eclipse formatting rules are the most valid and reference ones because it
is impossible to provide perfectly matching formatting configuration for
IntelliJ IDEA and Netbeans. It is possible and advised to configure
IntelliJ IDEA to use Eclipse formatting configuration via plugin. :-<


On 31 January 2014 14:36, Jason Pyeron <jp...@pdinc.us> wrote:

> > -----Original Message-----
> > From: Greg Huber
> > Sent: Friday, January 31, 2014 9:09
> >
> > ....well 120 does not seem to match.  Seems to be some
> > difficulty getting these two to work together :-<
> >
>
> Make a test file to empirically find out the behavior. Be mindful of lack
> of
> whitespace and space/tab behaviors.
>
> >
> > On 31 January 2014 12:59, Dave Newton <da...@gmail.com> wrote:
> >
> > > Likewise. IMO 80 doesn't really work for Java.
> > >  On Jan 31, 2014 7:29 AM, "Lukasz Lenart"
> > <lu...@apache.org> wrote:
> > >
> > > > 2014-01-31 Greg Huber <gr...@gmail.com>:
> > > > > ok, I will keep this in mind.
> > > > >
> > > > > Some differences seem to be in the line length, what
> > does intellij use?
> > > > >
> > > > > <setting id="org.eclipse.jdt.core.formatter.lineSplit"
> > > > > value="80"/>
> > > >
> > > > Mine is 120 ;-)
>
>
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> -                                                               -
> - Jason Pyeron                      PD Inc. http://www.pdinc.us -
> - Principal Consultant              10 West 24th Street #100    -
> - +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
> -                                                               -
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> This message is copyright PD Inc, subject to license 20080407P00.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

RE: [struts-dev] Re: java code formatter style.xml for eclipse

Posted by Jason Pyeron <jp...@pdinc.us>.
> -----Original Message-----
> From: Greg Huber 
> Sent: Friday, January 31, 2014 9:09
> 
> ....well 120 does not seem to match.  Seems to be some 
> difficulty getting these two to work together :-<
> 

Make a test file to empirically find out the behavior. Be mindful of lack of
whitespace and space/tab behaviors.

> 
> On 31 January 2014 12:59, Dave Newton <da...@gmail.com> wrote:
> 
> > Likewise. IMO 80 doesn't really work for Java.
> >  On Jan 31, 2014 7:29 AM, "Lukasz Lenart" 
> <lu...@apache.org> wrote:
> >
> > > 2014-01-31 Greg Huber <gr...@gmail.com>:
> > > > ok, I will keep this in mind.
> > > >
> > > > Some differences seem to be in the line length, what 
> does intellij use?
> > > >
> > > > <setting id="org.eclipse.jdt.core.formatter.lineSplit" 
> > > > value="80"/>
> > >
> > > Mine is 120 ;-)


--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: java code formatter style.xml for eclipse

Posted by Greg Huber <gr...@gmail.com>.
....well 120 does not seem to match.  Seems to be some difficulty getting
these two to work together :-<


On 31 January 2014 12:59, Dave Newton <da...@gmail.com> wrote:

> Likewise. IMO 80 doesn't really work for Java.
>  On Jan 31, 2014 7:29 AM, "Lukasz Lenart" <lu...@apache.org> wrote:
>
> > 2014-01-31 Greg Huber <gr...@gmail.com>:
> > > ok, I will keep this in mind.
> > >
> > > Some differences seem to be in the line length, what does intellij use?
> > >
> > > <setting id="org.eclipse.jdt.core.formatter.lineSplit" value="80"/>
> >
> > Mine is 120 ;-)
> >
> >
> > Regards
> > --
> > Łukasz
> > + 48 606 323 122 http://www.lenart.org.pl/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> > For additional commands, e-mail: dev-help@struts.apache.org
> >
> >
>

Re: java code formatter style.xml for eclipse

Posted by Dave Newton <da...@gmail.com>.
Likewise. IMO 80 doesn't really work for Java.
 On Jan 31, 2014 7:29 AM, "Lukasz Lenart" <lu...@apache.org> wrote:

> 2014-01-31 Greg Huber <gr...@gmail.com>:
> > ok, I will keep this in mind.
> >
> > Some differences seem to be in the line length, what does intellij use?
> >
> > <setting id="org.eclipse.jdt.core.formatter.lineSplit" value="80"/>
>
> Mine is 120 ;-)
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

Re: java code formatter style.xml for eclipse

Posted by Lukasz Lenart <lu...@apache.org>.
2014-01-31 Greg Huber <gr...@gmail.com>:
> ok, I will keep this in mind.
>
> Some differences seem to be in the line length, what does intellij use?
>
> <setting id="org.eclipse.jdt.core.formatter.lineSplit" value="80"/>

Mine is 120 ;-)


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: java code formatter style.xml for eclipse

Posted by Greg Huber <gr...@gmail.com>.
ok, I will keep this in mind.

Some differences seem to be in the line length, what does intellij use?

<setting id="org.eclipse.jdt.core.formatter.lineSplit" value="80"/>

Cheers Greg






On 31 January 2014 11:30, Lukasz Lenart <lu...@apache.org> wrote:

> I don't think so... as a member of ASF you can order free license of
> IntelliJ IDEA
>
> 2014-01-31 Greg Huber <gr...@gmail.com>:
> > Hello,
> >
> > Is there a standard style.xml for the java code formatter in Eclipse,
> that
> > I can import?
> >
> > Cheers Greg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

Re: java code formatter style.xml for eclipse

Posted by Lukasz Lenart <lu...@apache.org>.
I don't think so... as a member of ASF you can order free license of
IntelliJ IDEA

2014-01-31 Greg Huber <gr...@gmail.com>:
> Hello,
>
> Is there a standard style.xml for the java code formatter in Eclipse, that
> I can import?
>
> Cheers Greg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org