cnwizards icon indicating copy to clipboard operation
cnwizards copied to clipboard

[Feature request] do not wrap multiline function parameters

Open Sorien opened this issue 8 years ago • 2 comments

imagine i'm calling function like

    Import('foo',
     ':bar,:Description,NULL,NULL,NULL,NULL',
              ['bar', 'Description'],
                         ['bar', 'LANSPEDAT515.Des110'], XmlNodes);

currently formatter can wrap after x chars or make it one line (disable auto wraps)

#1 we would need another options like "respect multiline/do not change wrapping when multiline"

    Import('foo',
    ':bar,:Description,NULL,NULL,NULL,NULL',
    ['bar', 'Description'],
    ['bar', 'LANSPEDAT515.Des110'], XmlNodes);

#2 align when multiline

    Import('foo',
           ':bar,:Description,NULL,NULL,NULL,NULL',
           ['bar', 'Description'],
           ['bar', 'LANSPEDAT515.Des110'], XmlNodes);

Sorien avatar Oct 20 '15 07:10 Sorien

Now we don't have more time to add new options to code formatting implementation, could you try to surround your code with {(} and {)} to avoid formatting it?

shanzhashu avatar Oct 21 '15 02:10 shanzhashu

Oh, there's a star, which shown at setting dialog.

shanzhashu avatar Oct 21 '15 02:10 shanzhashu