Lets you define what makes a chunk: a section of associated statements. With "Variable identifiers" and/or "Align assignments" enabled, Jalopy determines what statements can be aligned using these options.
If enabled, a statement with a comment before is recognized as the start of a new chunk.
Example 2.681. Aligned assignments/identifiers
String text = "text"; int a = -1; // create a new entry History.Entry entry = new History.Entry(text);
Example 2.682. Aligned assignments/identifiers, chunks detected by comments
String text = "text"; int a = -1; // create a new entry History.Entry entry = new History.Entry(text);
If enabled, a statement which has one or more blank lines before is recognized as the start of a new chunk.
Example 2.683. Aligned assignments/identifiers
String text = "text"; int a = -1; History.Entry entry = new History.Entry(text);
Example 2.684. Aligned assignments/identifiers, chunks detected by blank lines
String text = "text"; int a = -1; History.Entry entry = new History.Entry(text);
If enabled, a statement that takes more than just one line to print is recognized as the start of a new chunk.
With standard indentation, it is recommended to habe this option enabled, because otherwise wrapped expressions might obscure aligned assignments.
Since 1.3
Example 2.685. Aligned assignments
int labelR_x = Math_min(iconR.x, textR.x); int labelR_with = Math_max(iconR.x + iconR.width, textRrr.x) - labelR_x; int labelR_width = Math_max(iconR.x + iconR.width, textRrr.x) - labelR_x; int labelR_y = Math_min(iconR.y, textR.y); int labelR_height = Math_max(iconR.y + iconR.height, textR.y + textR.height); int labelR_x = Math_min(iconR.x, textR.x); int lab = Math_min(iconR.x, textR.x);
Example 2.686. Aligned assignments, chunks detected by line wrap, prefer wrap after assign
int labelR_x = Math_min(iconR.x, textR.x); int labelR_with = Math_max(iconR.x + iconR.width, textRrr.x) - labelR_x; int labelR_width = Math_max(iconR.x + iconR.width, textRrr.x) - labelR_x; int labelR_y = Math_min(iconR.y, textR.y); int labelR_height = Math_max(iconR.y + iconR.height, textR.y + textR.height); int labelR_x = Math_min(iconR.x, textR.x); int lab = Math_min(iconR.x, textR.x);