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



title
5.6.2.2 Indentation

title
5.6.2.2.1 General

Tabulator stop size

Tabulator stop size

Sets tabulator size for formatted output.

This setting is only important if Jindent uses tabulator stops to indent or align source code.
In this case it is necessary to set the desired tabulator size of the formatted output soure code.
Common settings are: 3, 4 or 8.

See also... See also: Indent leading code by tab stops , Indent variable/field declarations by tab stops , Indent assignments by tab stops , Indent trailing comments by tab stops




First level indentation size

First level indentation size

Sets the first level indentation of source code.


A first level indentation of 0:

class·Test·{                            
                                        
····void·method()·{                     
········...                             
····}                                   
}                                       


A first level indentation of 4:

····class·Test·{                        
                                        
········void·method()·{                 
············...                         
········}                               
····}                                   



General indentation size

General indentation size

If source code (for example in a block) will be indented, then Jindent uses this indentation size setting.


A typical indentation size can be 3:

class·Test·{                            
                                        
···void·method()·{                      
······x·=·x·+·10;                       
······...                               
···}                                    
}                                       


The same example using an indentation size of 4:

class·Test·{                            
                                        
····void·method()·{                     
········x·=·x·+·10;                     
········...                             
····}                                   
}                                       



Indent leading code by tab stops

Indent leading code by tab stops

Usually Jindent uses spaces to indent and align source code. Use this switch if you prefer to indent leading source code by tabulator stops.


The same example as above, but leading source code is now indented by tabulator stops.
The arrows denote tabulator stops with a size of 4.

class Test {                            
                                        
--->void method() {                     
--->--->x = x + 10;                     
--->--->...                             
--->}                                   
}