[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.jdt] Jave 3.3 code formatter question
|
- From: "Paul A. Rubin" <rubin@xxxxxxx>
- Date: Fri, 27 Jul 2007 16:04:07 -0400
- Newsgroups: eclipse.tools.jdt
- Organization: Michigan State University
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070716 Thunderbird/2.0.0.5 Mnenhy/0.7.5.0
Hi all,
I would like to invoke the code formatter when I save a file, but I'm
running into one annoyance I can't seem to work around. I want to
format method parameters manually, e.g.
void myMethod(int a, int b,
int c, double d) {
...
}
but Eclipse 3.3 won't let me. If I have the formatter on, it insists on
unwrapping the declaration to
void myMethod(int a, int b, int c, double d) {
...
}
and rewrapping if that violates the line length. This is with the
relevant formatter preference set to no wrapping; any of the other
wrapping options wraps it differently, but not the way I want.
The smart money says I'm missing something. Is there a way to tell the
code formatter to ignore parameter lists when formatting the code, or a
way to insert a "hard" line break that is inviolable?
TIA,
Paul