one argument per line method signatures

Bug #1209780 reported by Ueli Hofstetter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
JQuantLib
Incomplete
Medium
Unassigned

Bug Description

currently our eclipse code formatter formats method bodys/constructors like this

void foo(int a, int b, int c, int d, int e, .....)

as soon as there are more then, let's say, 6 arguments including generics, long names asf, this gets very unreadable.

the idea would be to switch to a one argument per line formatting style (evt. only when we have more then x arguments), ie

void foo(int a,
         int b,
         int c,
         ....)

please leave comments on whether do you think this is useful/ necessary and whether this is possible in eclipse at all (at first view it seem's impossible in eclipse ....)

Tags: tools
Revision history for this message
Richard Gomes (frgomes) wrote :

It's not a bad idea.

It's possible to be done.
In Eclipse you can define how source code is formatted.

Would you like to try?
Please let me know if you have troubles.

Regards

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.