Community
Participate
Working Groups
I would like the formatting of the following statement: function(arg1, arg2, arg3); to become: function(arg1, arg2, arg3); if there is enough space for it. Otherwise it should become (like today): function( arg1, arg2, arg3);
New code formatter should do what you want (once finalized). You can experiment it in latest 3.0 integration build and some little tweaking to enable it (if you feel having some pioneer spirit). Olivier can tell you how to enable it.
This will be doable, but it won't depend if you have enough space. You will be able to set the type of alignment.
Ok, probably good enough. But what happens if: function(arg1 doesn't fit on a line?
According to the type of alignment you will get: function(arg1, .... or: function( args1, .... If you don't set any alignment (it will be an option) then there is simply no line splitting even if it goes beyond the page width. We want to give flexibility to the user, but he/she will decide the way the code should be formatted.
This is addressed in the new formatter. Fixed and released in HEAD. Regression test added.
Verified.