DragonFly On-Line Manual Pages

Search: Section:  


ceylon format(1)                                              ceylon format(1)

NAME

ceylon format - Formats Ceylon source code

SYNOPSIS

ceylon format [--help[=value]] [--version]

DESCRIPTION

ceylon format source .fi or, if you're worried about it breaking your source code (which shouldn't happen - if anything bad happens, error recovery kicks in and the original file is restored) or you just want to test it out: ceylon format source --to source-formatted .fi You can also format multiple folders at the same time: ceylon format source --and test-source --to formatted .fi which will recreate the source and test-source folders inside the new formatted folder.

OPTIONS

--help[=value] Print this help message. (--help=options prints help for the various options.) --version Print version information. The first line is always just the module name and version in the format that ceylon run understands (ceylon.formatter/x.y.z), which might be useful for scripts.

OTHER OPTIONS

--${option name}=${option value} Set a formatting option. The most useful ones are: --maxLineLength The maximum line length, or `unlimited`. --indentMode The indentation mode. Syntax: `x spaces` or `y-wide tabs` or `mix x-wide tabs, y spaces`. --lineBreak `lf`, `crlf`, or `os` for the operating system's native line breaks. For a full list of options, see the output from `--help=options` or the documentation of the FormattingOptions class. 28 October 2015 ceylon format(1)

Search: Section: