Jindent - Java Source Code Formatter http://www.jindent.com
 



title
5.6.2.10.5 Assignments

Align bit fields

Align bit fields

Controls whether bit fields are aligned within one source code chunk or not.


Align bit fields:

bool field_abc :0;                      
bool field     :
1;                      
int value      :2;                      


Do not align bit fields:

bool field_abc :0;                      
bool field :
1;                          
int value :2;                           

See also... See also: Jindent - Settings - Formatter - C / C++ - Alignments - Chunks




Align bit fields exceeding max. line length

Align bit fields exceeding max. line length

Controls whether bit fields which exceed maximal line length are aligned with other bit fields or not.


Align exceeding bit fields:

bool field_abc : 0;                                                   |
bool field     : 1;                                                   |
int value      : getInitialValue(parameterOne, parameterTwo,          |
                                 
paremeterThree);                     |

Even if assignment of variable myObject exceeds the specified maximal line length it will be aligned.


Do not align exceeding bit fields:

bool field_abc : 0;                                                   |
bool field     : 1;                                                   |
int value : getInitialValue(parameterOne, parameterTwo,               |
                            
paremeterThree);                          |

Assignment of variable myObject exceeds the specified maximal line length. Therefore it will be not aligned.



Indent bit fields by tab stops

Indent bit fields by tab stops

Controls whether bit fields are indented by spaces or tabulator stops.


Indent bit fields by tabulator stops:

bool field_abc->:0;                     
bool field
->--->:1;                     
int value-->--->:2;                     


Do not indent bit fields by tabulator stops, rather use white spaces:

bool·field_abc·:0;                      
bool
·field·····:1;                      
int·value······:2;