PrettyPrinterConfiguration
Deprecated
This class could be removed in a future version. Use defaultPrinterConfiguration.
Configuration options for the PrettyPrinter. This class is no longer acceptable to use because it is not sufficiently configurable and it is too tied to a specific implementation
Use interface or DefaultPrinterConfiguration default implementation instead.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get the type of indent to produce.
Link copied to clipboard
Link copied to clipboard
Get the tab width for pretty aligning.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setColumnAlignFirstMethodChain(columnAlignFirstMethodChain: Boolean): PrettyPrinterConfiguration
Link copied to clipboard
Link copied to clipboard
Set the character to append when a line should end.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Set the size of the indent in characters.
Link copied to clipboard
Set the type of indent to produce.
Link copied to clipboard
open fun setMaxEnumConstantsToAlignHorizontally(maxEnumConstantsToAlignHorizontally: Int): PrettyPrinterConfiguration
By default enum constants get aligned like this: until the amount of constants passes this currentValue (5 by default).
enum X {
A, B, C, D
}
Content copied to clipboard
Link copied to clipboard
When true, orders imports by alphabetically.
Link copied to clipboard
When true, all comments will be printed, unless printJavadoc is false, then only line and block comments will be printed.
Link copied to clipboard
When true, Javadoc will be printed.
Link copied to clipboard
Set if there should be spaces between operators
Link copied to clipboard
Set the tab width for pretty aligning.