Format
- class Format
Description
Formatter options for Syside
Inheritance:
Members defined in
Format(5 members)RWLine ends to enforce in formatted documents.
RWFormatter visual line-width limit.
RWNumber of spaces for tabs if using space indentation.
RWIndent using tabs instead of spaces.
Members inherited from
FormatOptions(11 members)RWOptions for binary ends formatting:
RWOptions for declarations.
RWOptions for declaration formatting.
RWChoose between
{}and;when formatting empty children blocks:RWOptions for keyword formatting, switching between keywords and tokens, or omitting keywords where possible.
RWWhether to treat
CommentandDocumentationbodies as Markdown.RWWhether to append a note with the package name to the closing bracket.
RWOptions for expression parentheses formatting:
RWWhether to strip quotes from quoted identifiers where possible.
RWOptions for printing synthetic elements.
RWOptions for trailing comma placement.
Attributes
- property line_ending: syside.conf.LineEnding | None
Line ends to enforce in formatted documents.
When set to
auto, and the document has mixed line ends, choice betweenlfandcrlfis an implementation detail. Documents without line ends default tolf.nativeselects line ending based on the platform Syside runs on,lfon Unix, andcrlfon Windows.
- property line_width: int
Formatter visual line-width limit.
Formatter will attempt to fit formatted lines into this number of visual columns.
- property tab_width: int | None
Number of spaces for tabs if using space indentation.
Takes priority over editor settings if set. Defaults to
4otherwise.
- property tabs: bool | None
Indent using tabs instead of spaces.
Takes priority over editor settings if set. Defaults to
falseotherwise.
Methods