Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » code formatter problem
code formatter problem [message #96730] Thu, 18 September 2003 04:03 Go to next message
Eclipse UserFriend
Hi,

i have a small problem with the code formatter. Unter
Window->Preferences->Java->Code Formatter it
is possible to change the way the code is formatted. However it is not
possible to tell eclipse to
insert a space between the method name / class name and the following
opening bracket :

e.g :
StringBuffer sb = new StringBuffer();
sb.toString();

however i want the code to look like :

StringBuffer sb = new StringBuffer ();
sb.toString (); ^
^ a space character
a space character


did i miss something, or is it not possible to tell eclipse to insert a
space character ?

thanks in advance,

Andreas
Re: code formatter problem [message #96748 is a reply to message #96730] Thu, 18 September 2003 04:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Andreas,

this is currently not possible. Feel free to file a feature request
against JDT Core.

Dani

Andreas Wuest wrote:

>Hi,
>
>i have a small problem with the code formatter. Unter
>Window->Preferences->Java->Code Formatter it
>is possible to change the way the code is formatted. However it is not
>possible to tell eclipse to
>insert a space between the method name / class name and the following
>opening bracket :
>
>e.g :
>StringBuffer sb = new StringBuffer();
>sb.toString();
>
>however i want the code to look like :
>
>StringBuffer sb = new StringBuffer ();
>sb.toString (); ^
> ^ a space character
> a space character
>
>
>did i miss something, or is it not possible to tell eclipse to insert a
>space character ?
>
>thanks in advance,
>
> Andreas
>
>
>
>
>
>
>
Re: code formatter problem [message #96761 is a reply to message #96730] Thu, 18 September 2003 05:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wagner.stefan.berlin.de

Hi Andreas,

> i have a small problem with the code formatter.
....
> insert a space between the method name / class name and the following
> opening bracket :
> sb.toString();
> sb.toString ();

I prefer this Layout too.
It is the standard for Textlayout in Bookprinting to have blanks OUT of the
braces, and no blank inside,
e.g.
aaa.doIt (a, b, c);
aaa.doIt (a, b);
aaa.doIt ();

and bookprinting is taking place since about 400 years, so they have a lot
of experience.
It is much better readable, especially in the 'outline'-window.
Re: code formatter problem [message #96776 is a reply to message #96761] Thu, 18 September 2003 07:40 Go to previous message
Eclipse UserFriend
Originally posted by: olivier_thomann.ca.ibm.comNOSPAM

Le Thu, 18 Sep 2003 11:22:28 +0200, "Stefan Wagner"
<wagner.stefan@berlin.de> a écrit :
>I prefer this Layout too.
>It is the standard for Textlayout in Bookprinting to have blanks OUT of the
>braces, and no blank inside,
>e.g.
>aaa.doIt (a, b, c);
>aaa.doIt (a, b);
>aaa.doIt ();
This will be possible with the new formatter.
--
Olivier
Previous Topic:Using "Ant" from within eclipse...
Next Topic:Getting source file for IPackageFragmentRoot
Goto Forum:
  


Current Time: Mon Jul 07 14:44:18 EDT 2025

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

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

Back to the top