Name |
Ceylon Source Code Formatter |
---|---|
Description |
A formatter for the Ceylon programming language. Command line usageNote: if the ceylon plugin install ceylon.formatter/1.3.3 To format all Ceylon code in the ceylon format source test-source To format all Ceylon code in the ceylon format source --to source-formatted To format all Ceylon code in the ceylon format source --and test-source --to source-formatted (This results in two subdirectories You can specify an arbitrary amount of these formatting commands: ceylon format \ source --to source-formatted \ test-source --to test-source-formatted (The line breaks are only included for clarity and not a part of the command line syntax.) If no formatting commands are present, the formatter operates in “pipe mode”, reading code from standard input and writing to standard output. OptionsYou can specify formatting options using the following syntax: --optionName=optionValue # or --optionName optionValue For available option names, see
Library usageUse the If the node was parsed from an existing file, don’t forget
to pass the token stream to To construct FormattingOptions, usage of named arguments is highly recommended: FormattingOptions { indentMode = Spaces(8); maxLineLength = 80; } You can also use SparseFormattingOptions and combinedOptions to compose several sets of options, like this: combinedOptions { baseOptions = companyWideOptions; SparseFormattingOptions { indentMode = Spaces(1); // our department has very small screens :-( } } |
Category |
Command-line plugins
Modules which have command-line plugins available. You can install them with |
Last Published | Sep 5, 2017 |
Stats |
Downloads (JVM): 2986 Downloads (JS): 0 Source downloads: 2859 |
Module links |
Home Code repository Issue tracker Imported By Browse |
1.3.3 | JVM JVM: 1.2.x, 1.3.x (latest) | Published Sep 5, 2017 |
Browse |
View docs |
|
1.3.2 | JVM JVM: 1.2.x, 1.3.x (latest) | Published Mar 2, 2017 |
Browse |
View docs |
|
1.3.1 | JVM JVM: 1.2.x, 1.3.x (latest) | Published Nov 21, 2016 |
Browse |
View docs |
|
1.3.0 | JVM JVM: 1.2.x, 1.3.x (latest) | Published Sep 15, 2016 |
Browse |
View docs |
|
1.2.2 | JVM JVM: 1.2.x, 1.3.x (latest) | Published Mar 13, 2016 |
Browse |
View docs |
|
1.2.1 | JVM JVM: 1.2.x, 1.3.x (latest) | Published Feb 11, 2016 |
Browse |
View docs |
|
1.2.0 | JVM JVM: 1.2.x, 1.3.x (latest) | Published Oct 28, 2015 |
Browse |
View docs |
|
1.1.0 | JVM JVM: 1.1.0 (outdated) | Published Oct 8, 2014 |
Browse |
View docs |