Community
Participate
Working Groups
The Code Formatter should have more options in it. Currently Code is formatted so that all the spaces are removed around method arguments method(arg1, arg2); id like to see the option of leading and trailing spaces like: method (arg1,arg2); , method(arg1, arg2); , method( arg1, arg2 ) ;, method( arg1 , arg2 ) ;, method ( arg1 , arg2 ) ;… Also the line wrapping could be modified like: StringBuffer sql = new StringBuffer( ConstTypes.SOME_TYPE ) ; sql.append( " WHERE " ).append( ConstAttrs.SOME_ATTR1 ) .append( " = '" ).append( someValue1 ).append( "' AND" ) .append( ConstAttrs.SOME_ATTR2 ).append( " = '" ).append( someValue2 ) .append( "' AND " ) ; Instead of setting each append on its own line. This obviously should apply to other wrapping settings too. Br, Chris
Allso the sort members could have distinction between public, protected and private methods/variables. Br, Chris
formatter is core
Code formatter is going to be reworked post 2.1.
Thanks!
Resurrecting for 3.0
Reopen for 3.0 consideration.
Could you please check if the new formatter preference page allows you to set up the formatting like you want? You can finely control the whitespaces added in the formatted string. The sorting of elements is not done by the formatter, but can be done in the UI by selecting the Source menu>Sort members.
Fixed in HEAD.
Verified for 3.0M6