I like to format my code like this:
void someFunction() {
normalLine();
reallyLongLineThatNeedsToBeWrapped(
OnlyIndentOneSpaceHere = true);
normalLine();
}
But from my experimenting with Eclipse's source formatting, it seems that you can't specify wrapped line indentation independently from new block indentation.
Is there a way to accomplish this in Eclipse?
Per answer, I submitted an Eclipse enhancement request.
解决方案
I don't think so. The problem is you can't change the indentation size to be different depending on context. So choosing 1 for the indentation size results in everything being indented by one space. You can have a separate wrapping policy based on it being a function call or not, but the "units" of indentation can't change if it's a function call.