Community
Participate
Working Groups
if i have such method public static void parseRendererURL( Template template, String prefix, String urlBlock, String urlVariable, Map urlMap, Long instanceId, Long pageId, Long successForward, boolean canParse) { it would be nice to customize it's formatting to something like this public static void parseRendererURL(Template template, String prefix, String urlBlock, <Line spliting goes here String urlVariable, Map urlMap, Long instanceId, Long pageId, Long successForward, boolean canParse) { so add "Insert new line after each parameter if line is too long" checkbox to Preferences > Java > Code Formatter > New Lines
Sun's Java Code Conventions state: http://java.sun.com/docs/codeconv/html/CodeConventions.doc3.html#248 <quote> Following are two examples of indenting method declarations. The first is the conventional case. The second would shift the second and third lines to the far right if it used conventional indentation, so instead it indents only 8 spaces. //CONVENTIONAL INDENTATION someMethod(int anArg, Object anotherArg, String yetAnotherArg, Object andStillAnother) { ... } //INDENT 8 SPACES TO AVOID VERY DEEP INDENTS private static synchronized horkingLongMethodName(int anArg, Object anotherArg, String yetAnotherArg, Object andStillAnother) { ... } </quote> Both of these options should be implemented. Today the second and following lines of parameters are only indented 4 spaces, which makes them indistinguishable(sp?) from the following lines of code.
Formatter is owned by JDT Core.
wich version will include this feature ? don't see the Target Milestone field filled
I will try this as soon as the new code formatter preference page is ready.
Please try the latest integration build and check the new code formatter preference page. It should solve your problem.
Fixed in HEAD.
Verified for 3.0M6