Dear Tabifier users,
I've received a feature request from Adam Winter to align commas in consecutive method calls. I am wondering if you would find this useful and would especially like your feedback on the proposed configuration controls to implement it.
For example, Adam would like
to appear as:
I'm proposing that tabifier be enhanced to optionally align parameters of consecutive method call statements. It would ignore any multiline method calls (these are already handled to some degree by IDEA's code layout options.)
The syntactic columns that could be aligned are:
- opening parend
- close parend
- optionally treat close parend as alignable with comma (useful when number of parameters is different)
- trailing comment
Each could be selected independently, with number of spaces or tabs specified, similar to the way it currently handles declarations and assignment statements, but with necessary substitution of syntactic items for method calls.
To take an example:
Tabifier could replace it with any of the following, depending on your choice of settings. In these examples, assume a single space is appended to the previous column for alignment.
Align parameters only
Parameters automatically have one space after preceding comma so appear to be aligned also.
Align parameters, open and close parentheses
Align parameters, open and close parentheses, and treat close parend as comma for alignment purposes
Thanks for your feedback.
From: Adam Winter
Sent: Tuesday, June 03, 2003 10:01 PM
To: Dave Kriewall
Subject: Re: tabifier
Hi, I took a closer look at the code, and realized I was probably
mistaken. I was under the impression that the aligning of commas would
But after looking at the code realized that it only deals with commas
at the end of the line.
So, keeping the commas/semicolons together is fine, but can commas in
method arguments be aligned?