Menu

#109 Feature Request - indent continuation lines with an extra tab only

None
open
nobody
None
2019-07-21
2017-10-11
No

It should be possible to indent continuation lines with an extra tab regardless of the previous line's structure. Example:
instead of
<tab><tab>int onePlusTwo = 1
<tab><tab>................+ 2;
the output should be
<tab><tab>int onePlusTwo = 1
<tab><tab><tab>+ 2;
The attached patch implements this feature introducing a new option -tab-noalign.

1 Attachments

Discussion

  • w-peuker

    w-peuker - 2018-01-29

    This is what I wish for long parameter lists. The indentation up to the first parameter seems too sophisticated to me and causes extra noise when function names change. Whereas I'd add that the continuation indentation should be controled by its own configuration parameter (maybe with +1 standard indentation width as default value).

     

    Last edit: w-peuker 2018-01-29
  • Jim Pattee

    Jim Pattee - 2018-01-29

    Ticket moved from /p/astyle/bugs/458/

     

Log in to post a comment.