Skip to content

Format options

Set under <language>.format in sudsy.yaml. The options indent_style, indent_size, line_width, end_of_line, final_newline, bracket_spacing and array_bracket_spacing can also be set once under a top-level format.

Option Type Default Description
bracket_same_line boolean false Put the > of a multi-line start tag at the end of the last attribute’s line.
content_newline_with_attributes boolean false Put the content of an element that has attributes on lines of its own, also when the element fits on a line; inline elements and pre keep theirs (vue/singleline-html-element-content-newline with its defaults).
content_newline_with_elements boolean false Put the children of an element that has an element child on lines of their own, also when they fit on a line; only where the whitespace between them is not significant (whitespace_sensitivity: ignore, @html-eslint/element-newline).
embedded_language_formatting string "auto" Format the code of <script> and <style> and of style, srcset and event-handler attributes with the formatter of its language (auto, Prettier’s embeddedLanguageFormatting), or keep it as written (off). Code that does not parse, or of a language that is not installed, is kept either way.
Values: auto, off
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_comment_lines boolean false Put the lines of a multi-line comment one level deeper than the comment and a closing --> on a line of its own at the comment’s level, whatever indentation they had (@html-eslint/indent); the default keeps them as written.
indent_expression_operands boolean false Indent the operands of a binary or logical expression that continues on following lines in an attribute or {{ }} expression (vue/html-indent); the default aligns them with the first operand.
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
line_width integer 80 Preferred maximum line width in columns.
Values: 20..1000
max_attributes_per_line integer 0 Put every attribute of a start tag that has more than this many on its own line (vue/max-attributes-per-line, @html-eslint/attrs-newline); 0 sets no limit. single_attribute_per_line is the limit 1.
Values: 0..100
self_closing_space boolean true Write a space before the /> of a self-closing element (<use />, <br />); off writes <use/> (@html-eslint/no-extra-spacing-tags).
single_attribute_per_line boolean false Put every attribute of a tag that has several on its own line.
void_element_style string "selfclose" How a void element (br, img, …) is written: selfclose as <br />, omit as <br> (void-style).
Values: selfclose, omit
whitespace_sensitivity string "css" Whether whitespace between inline elements and text is significant: css follows each element’s CSS display, strict treats every element as inline, ignore as block.
Values: css, strict, ignore
Option Type Default Description
access_modifier_outdent integer 2 Columns public:, private: and protected: are outdented from the members of their class.
Values: 0..16
align_after_open_bracket string "align" Wrapped lines inside brackets line up with the first token after the bracket (align), continue with continuation_indent (dont_align), or always start on a new line after the bracket (always_break).
Values: align, dont_align, always_break
align_escaped_newlines string "right" The backslashes of a multi-line macro: aligned at line_width (right), one blank after the longest line (left) or one blank after each line.
Values: right, left, dont_align
align_trailing_comments boolean true Align the trailing comments of consecutive lines.
align_with_tabs boolean false With indent_style: tab, the alignment of continuation lines uses tabs for each whole indent width and spaces for the rest.
bin_pack_arguments boolean true Call arguments that do not fit on a line are filled; when false they go one per line (or all on one line).
bin_pack_parameters boolean true Function parameters that do not fit on a line are filled; when false they go one per line (or all on one line).
brace_wrapping array [] Constructs whose opening brace goes on its own line: class, struct, union, enum, function, namespace, extern, control (if, for, while, switch, do, try), case, else (the else after a block starts a line), catch (the catch after a block starts a line), while (the while of a do loop starts a line). Empty: every brace stays on the line of its construct.
braced_list_padding boolean false A blank inside the braces of an initializer list ({ 1, 2 } against {1, 2}); an empty list is {}.
break_after_return_type string "none" The function name goes on a new line after its return type: never, for declarations and definitions outside classes (top_level), for all, or for definitions only (top_level_definitions, all_definitions).
Values: none, top_level, all, top_level_definitions, all_definitions
break_before_binary_operators string "none" A wrapped binary expression breaks after the operator (none), before it except for assignments (non_assignment) or before every operator (all).
Values: none, non_assignment, all
break_constructor_initializers string "before_colon" Constructor initializer lists that do not fit start on a new line before the colon (before_colon, one initializer per line when needed), or put a comma before each initializer, one per line (before_comma).
Values: before_colon, before_comma
break_template_declarations string "multiline" template <...> ends its line: always (yes), when the declaration is not on one line (multiline) or never.
Values: yes, multiline, no
collapse_empty_blocks boolean false An empty body is {} when its line fits, except the block of if, for, while, do, try and catch and a block inside a block, which has two lines (if (x) {\n}).
comment_keep_unicode_blanks boolean true A comment loses only trailing ASCII whitespace; a no-break space at its end stays.
constructor_initializer_indent integer 4 Columns a constructor initializer list is indented more than its constructor.
Values: 0..16
continuation_indent integer 4 Columns a wrapped line is indented more than the line it continues, where it is not aligned to a bracket.
Values: 0..16
derive_pointer_alignment boolean false Take pointer_alignment from the file: the side that most of its declarators of pointers and references use (a * or & with a blank before and none after against none before and a blank after); pointer_alignment stays where both sides are equal.
empty_body_own_line boolean false The ; that is the whole body of an if, for or while goes on its own line below the head, indented (while (x)\n ;).
empty_line_before_access_modifier string "logical_block" A blank line before public:, private: and protected: (not the first item of a class): removed (never), as written (leave), added unless a comment stands in front (logical_block) or always added.
Values: never, leave, logical_block, always
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
for_each_macros array ["foreach","Q_FOREACH","BOOST_FOREACH"] Names of macros that are used as loops: name(args) { is a control brace. Any other name(args) { is a function definition for brace_wrapping.
indent_braces boolean false Indent a brace that is on its own line together with the block it opens.
indent_case_labels boolean false Indent case labels one level inside their switch.
indent_goto_labels boolean true A goto label stands one indent left of the statements of its block; when false it starts at column 0.
indent_pp_directives string "none" A preprocessor directive starts with # directly followed by its keyword (none) or keeps the blanks written after the # (keep).
Values: none, keep
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
join_closing_angles boolean false Two closing template brackets are written together (A<B<C>> against A<B<C> >), as C++11 reads them. Only a > that closes a template bracket is joined, a comparison or a shift stays apart.
keep_blank_lines_at_end_of_blocks boolean false A blank line before the closing brace of a block stays.
keep_leading_blank_lines boolean true Blank lines at the start of the file stay.
line_width integer 80 Preferred maximum line width in columns.
Values: 20..1000
max_blank_lines integer 1 Largest number of blank lines kept between statements and comments.
Values: 0..10
namespace_indentation string "none" Indent the contents of namespaces: none, only namespaces nested in another (inner), or all.
Values: none, inner, all
penalty_return_type integer 60 What a return type on a line of its own costs the layout; the higher, the longer the parameter list may wrap before the return type moves.
Values: 0..1000
pointer_alignment string "right" Where the * and & of a pointer or reference declarator go: next to the name (right), next to the type (left) or between them (middle).
Values: right, left, middle
short_case_labels boolean false A case label and its simple statement are kept on one line when they fit.
short_enums boolean true An enum whose body fits stays on one line.
short_functions string "all" Function bodies kept on the line of the signature when they fit: none, empty ({} only), inline (functions defined in a class, and empty ones) or all.
Values: none, empty, inline, all
short_ifs string "never" An if with a simple statement is kept on one line when it fits: never, without an else, or with or without.
Values: never, without_else, all
short_lambdas string "all" Lambda bodies kept on the line of the lambda when they fit: none, empty, inline (a lambda that is an argument) or all.
Values: none, empty, inline, all
short_loops boolean false A for, while or range-for with a simple statement is kept on one line when it fits.
space_after_cast boolean false A blank after the ) of a C cast ((int) x against (int)x).
space_before_parens string "control_statements" A blank before the parenthesis of if, for, while, switch and catch (control_statements), before every parenthesis (always) or never.
Values: never, control_statements, always
spaces_before_trailing_comments integer 1 Blanks between the code of a line and its // comment.
Values: 0..16
split_empty_braces array [] Words of brace_wrapping whose empty body keeps { and } on two lines when the { is on its own line (void f()\n{\n}), as SplitEmptyFunction, SplitEmptyRecord and SplitEmptyNamespace. Other empty bodies are {}.
wrap_lines boolean true Break lines that are longer than line_width. When false, every line keeps the line breaks of the source (only indentation and spacing change).
Option Type Default Description
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 4 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
leading_argument_commands array ["set"] Commands whose first argument stays on the line of the command when the call breaks (set(NAME then the values).
line_width integer 80 Preferred maximum line width in columns.
Values: 20..1000
max_blank_lines integer 1 Largest number of blank lines kept between commands and comments.
Values: 0..10
Option Type Default Description
access_modifier_outdent integer 2 Columns public:, private: and protected: are outdented from the members of their class.
Values: 0..16
align_after_open_bracket string "align" Wrapped lines inside brackets line up with the first token after the bracket (align), continue with continuation_indent (dont_align), or always start on a new line after the bracket (always_break).
Values: align, dont_align, always_break
align_escaped_newlines string "right" The backslashes of a multi-line macro: aligned at line_width (right), one blank after the longest line (left) or one blank after each line.
Values: right, left, dont_align
align_trailing_comments boolean true Align the trailing comments of consecutive lines.
align_with_tabs boolean false With indent_style: tab, the alignment of continuation lines uses tabs for each whole indent width and spaces for the rest.
bin_pack_arguments boolean true Call arguments that do not fit on a line are filled; when false they go one per line (or all on one line).
bin_pack_parameters boolean true Function parameters that do not fit on a line are filled; when false they go one per line (or all on one line).
brace_wrapping array [] Constructs whose opening brace goes on its own line: class, struct, union, enum, function, namespace, extern, control (if, for, while, switch, do, try), case, else (the else after a block starts a line), catch (the catch after a block starts a line), while (the while of a do loop starts a line). Empty: every brace stays on the line of its construct.
braced_list_padding boolean false A blank inside the braces of an initializer list ({ 1, 2 } against {1, 2}); an empty list is {}.
break_after_return_type string "none" The function name goes on a new line after its return type: never, for declarations and definitions outside classes (top_level), for all, or for definitions only (top_level_definitions, all_definitions).
Values: none, top_level, all, top_level_definitions, all_definitions
break_before_binary_operators string "none" A wrapped binary expression breaks after the operator (none), before it except for assignments (non_assignment) or before every operator (all).
Values: none, non_assignment, all
break_constructor_initializers string "before_colon" Constructor initializer lists that do not fit start on a new line before the colon (before_colon, one initializer per line when needed), or put a comma before each initializer, one per line (before_comma).
Values: before_colon, before_comma
break_template_declarations string "multiline" template <...> ends its line: always (yes), when the declaration is not on one line (multiline) or never.
Values: yes, multiline, no
collapse_empty_blocks boolean false An empty body is {} when its line fits, except the block of if, for, while, do, try and catch and a block inside a block, which has two lines (if (x) {\n}).
comment_keep_unicode_blanks boolean true A comment loses only trailing ASCII whitespace; a no-break space at its end stays.
constructor_initializer_indent integer 4 Columns a constructor initializer list is indented more than its constructor.
Values: 0..16
continuation_indent integer 4 Columns a wrapped line is indented more than the line it continues, where it is not aligned to a bracket.
Values: 0..16
derive_pointer_alignment boolean false Take pointer_alignment from the file: the side that most of its declarators of pointers and references use (a * or & with a blank before and none after against none before and a blank after); pointer_alignment stays where both sides are equal.
empty_body_own_line boolean false The ; that is the whole body of an if, for or while goes on its own line below the head, indented (while (x)\n ;).
empty_line_before_access_modifier string "logical_block" A blank line before public:, private: and protected: (not the first item of a class): removed (never), as written (leave), added unless a comment stands in front (logical_block) or always added.
Values: never, leave, logical_block, always
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
for_each_macros array ["foreach","Q_FOREACH","BOOST_FOREACH"] Names of macros that are used as loops: name(args) { is a control brace. Any other name(args) { is a function definition for brace_wrapping.
indent_braces boolean false Indent a brace that is on its own line together with the block it opens.
indent_case_labels boolean false Indent case labels one level inside their switch.
indent_goto_labels boolean true A goto label stands one indent left of the statements of its block; when false it starts at column 0.
indent_pp_directives string "none" A preprocessor directive starts with # directly followed by its keyword (none) or keeps the blanks written after the # (keep).
Values: none, keep
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
join_closing_angles boolean false Two closing template brackets are written together (A<B<C>> against A<B<C> >), as C++11 reads them. Only a > that closes a template bracket is joined, a comparison or a shift stays apart.
keep_blank_lines_at_end_of_blocks boolean false A blank line before the closing brace of a block stays.
keep_leading_blank_lines boolean true Blank lines at the start of the file stay.
line_width integer 80 Preferred maximum line width in columns.
Values: 20..1000
max_blank_lines integer 1 Largest number of blank lines kept between statements and comments.
Values: 0..10
namespace_indentation string "none" Indent the contents of namespaces: none, only namespaces nested in another (inner), or all.
Values: none, inner, all
penalty_return_type integer 60 What a return type on a line of its own costs the layout; the higher, the longer the parameter list may wrap before the return type moves.
Values: 0..1000
pointer_alignment string "right" Where the * and & of a pointer or reference declarator go: next to the name (right), next to the type (left) or between them (middle).
Values: right, left, middle
short_case_labels boolean false A case label and its simple statement are kept on one line when they fit.
short_enums boolean true An enum whose body fits stays on one line.
short_functions string "all" Function bodies kept on the line of the signature when they fit: none, empty ({} only), inline (functions defined in a class, and empty ones) or all.
Values: none, empty, inline, all
short_ifs string "never" An if with a simple statement is kept on one line when it fits: never, without an else, or with or without.
Values: never, without_else, all
short_lambdas string "all" Lambda bodies kept on the line of the lambda when they fit: none, empty, inline (a lambda that is an argument) or all.
Values: none, empty, inline, all
short_loops boolean false A for, while or range-for with a simple statement is kept on one line when it fits.
space_after_cast boolean false A blank after the ) of a C cast ((int) x against (int)x).
space_before_parens string "control_statements" A blank before the parenthesis of if, for, while, switch and catch (control_statements), before every parenthesis (always) or never.
Values: never, control_statements, always
spaces_before_trailing_comments integer 1 Blanks between the code of a line and its // comment.
Values: 0..16
split_empty_braces array [] Words of brace_wrapping whose empty body keeps { and } on two lines when the { is on its own line (void f()\n{\n}), as SplitEmptyFunction, SplitEmptyRecord and SplitEmptyNamespace. Other empty bodies are {}.
wrap_lines boolean true Break lines that are longer than line_width. When false, every line keeps the line breaks of the source (only indentation and spacing change).
Option Type Default Description
accessor_blank_lines string "preserve" Blank lines between the accessors of a property that is laid out on several lines: preserve keeps the source’s (at most one); remove drops them.
Values: preserve, remove
assignment_conditional string "always" A conditional (a ? b : c) as the value of an assignment moves below the operator when it does not fit: always, or binary_test only when its test is an operator chain.
Values: always, binary_test
assignment_conditional_test_kinds array [] Node kinds, besides operator chains, that make a conditional’s test count as an operator chain for assignment_conditional: binary_test (a parenthesized test).
assignment_indent integer 1 Levels of indentation of a value that moves below the operator of an assignment.
Values: 1..4
assignment_inline_test_kinds array [] Kinds of operator chain that, as the test of a conditional, do not move the conditional below the operator of an assignment (x is null ? a : b).
assignment_layout string "compact" Where the value after = (or =>) goes when the line is too long: compact moves a binary expression, a conditional or a query to the next line and leaves any other value on the line; fluid also moves strings, collection expressions and property initializers, and any other value whose first line does not fit after the operator (a string that spans lines stays on the operator’s line; the body of an expression lambda moves below =>; chains a = b = c get layouts of their own); break moves every value that does not fit; multiline does the same except for a value with no place to break a line, which stays.
Values: compact, fluid, break, multiline
attached_except_kinds array ["PropertyDeclaration"] Kinds of parent of an assignment (attached_parent_kinds) whose value is not attached: a property’s initializer moves as a whole.
attached_parent_kinds array ["SimpleAssignmentExpression","EqualsValueClause"] Kinds of assignment whose value is attached (attached_value_kinds).
attached_value_kinds array ["ObjectInitializerExpression","CollectionInitializerExpression","ArrayInitializerExpression","ComplexElementInitializerExpression","WithInitializerExpression","CollectionExpression"] With wrapped_brace_line: all: kinds of the value of an assignment whose braces or brackets start on the operator’s line when the value breaks.
base_list_layout string "inline" The base list of a type (: A, B): inline keeps it on the line of the type name; hanging keeps it there when it fits and otherwise starts a line, with one base type per line.
Values: inline, hanging
binary_group_mixed_chains boolean true A single binary operation (a.length > 0 in a.length > 0 || b) is grouped also when its parent or a side is an operation of another kind; off: it is not when any of them is an operator chain of whatever kind.
binary_group_single boolean false A single binary operation (a(...) == b) whose parent, left and right side are no operation of its kind breaks before its operator only when the operator and the right side do not fit on the line where the left side ends, however the left side breaks (an operator at the start of a line only; one at the end always does this).
binary_hug string "assignment" A broken operator chain leaves the indentation of its continuation lines to the layout around it: assignment for the value of an assignment, declaration or entry, statement also for the value of return and throw.
Values: never, assignment, statement
binary_indent integer 1 Levels of indentation of the continuation lines of a broken operator chain.
Values: 1..4
binary_inline_right_kinds array ["RecursivePattern"] Node kinds of a right operand that stays on the operator’s line, whatever its length (x is { … }), unless the operation is an operand of another chain or the test of a conditional: the operand breaks, the operation does not.
binary_open_kinds array [] Node kinds of operator chains that, as an operand of another chain, print their operators in the group of that chain, indented, with no group of their own (x is A or B: a break puts every or on its own line).
binary_operator_line string "start" Where an operator of a chain (a + b + c) that does not fit goes: start breaks before it and puts one operand per line; end keeps it at the end of the line and moves an operand down only when it does not fit (a chain that mixes node kinds breaks at every operator).
Values: start, end
blank_after_block_kinds array ["GetAccessorDeclaration","SetAccessorDeclaration","InitAccessorDeclaration","AddAccessorDeclaration","RemoveAccessorDeclaration","UnknownAccessorDeclaration"] Node kinds that get a blank line before them after a closing brace when blank_lines_between_members is always.
blank_compact_kinds array ["FieldDeclaration","UsingDirective","ExternAliasDirective"] Node kinds of which two in a row need no blank line between them when blank_lines_between_members is always.
blank_directives_attach array ["#pragma"] Preprocessor directives (by their first characters) that follow an item with no blank line between and have a blank line after them (#pragma warning disable after a member): they belong to that item, and the blank line options add no blank line before them.
blank_directives_skip array ["#if","#el","#endif","#endregion"] Preprocessor directives (by their first characters) in front of a member or statement after which the blank line before it is the source’s: the item may start after the directive, so the blank line options add none.
blank_line_after_comment string "preserve" Blank line between the last // or /// comment in front of code and that code: preserve keeps the source’s (at most one); remove drops it. Comments at the start of a file and //// comments keep theirs.
Values: preserve, remove
blank_line_before_comment string "preserve" Blank line between a statement, member or switch section and a // comment on the lines before the next one (not ////): preserve keeps the source’s; require adds one.
Values: preserve, require
blank_lines_after_block string "preserve" Blank line after a statement, member or switch section that ends with a closing brace: preserve keeps the source’s (at most one); require adds one before the next statement, member or section.
Values: preserve, require
blank_lines_between_members string "preserve" Blank lines between the members of a type, namespace or enum: preserve keeps the source’s (at most one) and never adds one; separate also requires one between two members when either has a body, an attribute or a comment above it; always requires one between any two members of a type or namespace and between the using directives and what follows them, except between two fields or two using directives (enum members as separate).
Values: preserve, separate, always
brace_newline string "all" Opening braces of types, members, blocks and lambdas: all puts each on its own line (Allman); none keeps it on the line of the declaration or statement.
Values: all, none
brace_same_line array [] Elements whose opening brace stays on the line of the declaration or statement although brace_newline is all: types, methods, properties, accessors, anonymous_methods, anonymous_types, control_blocks, lambdas, object_collection_array_initializers (types include namespaces, methods include constructors, operators and local functions, properties include indexers and events, control blocks include switch statements and bare blocks).
catch_line string "inherit" catch after a block: new_line starts a line; same_line follows the closing brace; inherit takes clause_keyword_line.
Values: inherit, new_line, same_line
clause_keyword_line string "new_line" else, catch and finally after a block: new_line starts a line; same_line follows the closing brace (} else {) unless a comment sits between them.
Values: new_line, same_line
closing_paren_line string "own_line" The ) of a parameter, argument or attribute argument list that does not fit on one line: own_line puts it on a line of its own after the last item; same_line right after the last item.
Values: own_line, same_line
collection_blank_lines string "preserve" Blank lines between the elements of a collection initializer, array initializer or collection expression: preserve keeps the source’s (at most one); remove drops them. The members of an object initializer keep theirs.
Values: preserve, remove
conditional_indent integer 1 Levels of indentation of the branches of a broken conditional in the indented layout.
Values: 1..4
conditional_ladder_item_kinds array ["Argument"] With conditional_layout: ladder: kinds of an item of a list that indent a ladder when the list has several of them (an argument among others).
conditional_ladder_parent_kinds array ["ReturnStatement"] With conditional_layout: ladder: kinds of parent of a ladder that is indented one level (a returned value).
conditional_layout string "indented" Layout of a conditional (a ? b : c) that does not fit: indented puts the branches one level below the test, each conditional a group of its own; chained aligns the branches after ? and : and breaks a chain of conditionals in the else branch as one; ladder is indented, except that a chain of conditionals in the else branch puts every : test ? value on a line of its own at the level of the first test.
Values: indented, chained, ladder
constructor_initializer_line string "same_line" The : base(...) or : this(...) initializer of a constructor: same_line keeps it after the parameter list; new_line puts it on its own indented line.
Values: same_line, new_line
declarator_own_line_except_kinds array ["ForStatement"] Kinds of parent in which the declarators of declarator_own_line_kinds stay on one line (the header of a for).
declarator_own_line_kinds array [] Kinds of declaration whose declarators after the first (int a, b;, also fields) each stand on a line of their own, indented. Empty keeps them on the line of the first.
derive_symbol_sets boolean false Also parse with sets of symbols taken from the #if and #elif conditions of the file (the empty set, all symbols, then each symbol, then pairs and so on, at most 16 sets, after those of preprocessor_symbol_sets) until every branch has been active once, and format the branches that are inactive under preprocessor_symbols from those parses. A branch no set activates stays as it is.
do_while_line string "new_line" The while of a do statement: new_line starts a line; same_line follows the closing brace (} while (x);).
Values: new_line, same_line
else_line string "inherit" else after a block: new_line starts a line; same_line follows the closing brace; inherit takes clause_keyword_line.
Values: inherit, new_line, same_line
empty_braces string "space" Braces with nothing between them: space prints { }, tight prints {}, expanded puts the closing brace of an empty body on the line after the opening one (initializers, and lambdas and anonymous methods, stay { }).
Values: space, tight, expanded
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
finally_line string "inherit" finally after a block: new_line starts a line; same_line follows the closing brace; inherit takes clause_keyword_line.
Values: inherit, new_line, same_line
generated_header_markers array ["<autogenerated","<auto-generated"] Texts (<auto-generated) that mark a generated file when they occur, case-insensitively, in the comments at the start of the file; a * stands for any text within one line (code generated *do not edit.). Read when skip_generated or skip_generated_lint is on.
generated_header_skip array ["#"] Line prefixes (# for preprocessor lines) that do not end the leading comments when looking for generated_header_markers.
generated_names array ["TemporaryGeneratedFile_*","*.designer","*.generated","*.g","*.g.i"] Patterns of the names of generated files, matched case-insensitively against the file name without its last extension; * only at the start or the end (*.g, Temp_*). Read when skip_generated or skip_generated_lint is on.
hang_operand_kinds array [] Kinds of expression with a head and an operand (a cast (T)x) whose operand moves to an indented line of its own when the whole does not fit, unless it is a name, a call of a name or a parenthesized expression. Empty keeps the operand on the line of the head.
hanging_clause_inline_after array ["SwitchExpressionArm","DiscardPattern"] Pairs of a parent kind and the kind of its first child: a hanging clause of such a parent stays on the line (_ when x).
hanging_clause_kinds array [] Kinds of clause (when of a catch filter or a case guard) that move to an indented line of their own when the whole does not fit; a condition in parentheses hugs them. Empty keeps them on the line of what precedes them.
hug_last_argument string "last" A function, object or array that is the last argument stays on the call’s line while its body breaks: last for the last of any number of arguments, sole only for an argument that is alone, sole_bare only for a function alone that has no parameters or one without parentheses (x => ..., () => ...), never not at all.
Values: never, sole, sole_bare, last
indent_nested_binary boolean false Indent the operands of a binary expression that is itself an operand of a binary expression with an operator of another precedence (a && b || c).
indent_size integer 4 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
indent_switch_section_block boolean true Indent a block that is the only statement of a case section below its label; when false the block starts at the label’s indentation.
initializer_collapse string "preserve" Initializers and collection expressions: preserve keeps one expanded when the source has a line break in it; always puts one on a single line whenever it fits.
Values: preserve, always
initializer_expand string "fit" Initializers (and anonymous types) that fit on a line: fit keeps them on it; crowded puts one item per line when there are three or more member assignments, or two or more items one of which creates an object with an initializer.
Values: fit, crowded
initializer_group string "own" The braces of the initializer of a new expression: own breaks them only when they do not fit; creation breaks them together with the whole new T(...) { ... }, so that they are expanded once the type and arguments do not fit on the line either.
Values: own, creation
inline_accessor_bodies boolean false Keep the body of an accessor on its line (get { return x; }) when it is one simple statement without comments and fits; otherwise the braces go on their own lines. Accessors without a body ({ get; set; }) then also collapse onto one line when the source has them on several.
label_blank_line boolean false A blank line between a label and the statement it labels stays (at most one).
label_indent string "no_change" Indentation of a goto label: no_change keeps the indentation of the statements around it; one_less indents it one level less; flush_left puts it in column 0.
Values: no_change, one_less, flush_left
line_width integer 120 Preferred maximum line width in columns.
Values: 20..1000
member_attribute_line string "own_line" An attribute list in front of a member, statement or type: own_line puts it on a line of its own; keep leaves one that the source writes on the same line as what it annotates there ([SerializeField] private int speed;).
Values: own_line, keep
member_chain_break_on_block string "never" Break a member chain one call per line when it has an argument with a block body (a lambda or an anonymous class) even if the chain would fit: inner when a call other than the last has one, any when any call has one.
Values: never, inner, any
member_chain_factory_heads boolean true A capitalized name or this at the head of a chain stays on the line of the first call (Foo.Bar(); grouped style).
member_chain_hold_comments boolean false The comments in front of a member chain stay in front of it: their line breaks do not decide whether the chain breaks.
member_chain_hug_calls integer 0 A chain with at most this many calls keeps the last call’s arguments on the line of the chain when they break (Foo.Bar( args )); a chain with more calls that does not fit on a line is broken at its dots (grouped style; 0: the chain’s groups decide, as in Prettier).
Values: 0..1000
member_chain_indent integer 1 Levels of indentation of the lines of a broken member chain.
Values: 0..4
member_chain_indent_head boolean false The first group of a chain broken at its dots is indented like the groups after it, so the arguments and blocks in it are one level deeper (grouped style).
member_chain_keep_accesses string "never" In a broken member chain an access stays on the line of the call after it (.a.b() is one group) instead of starting a line of its own: always, or head in the first group only (which stays on the line of the head when the head name is short or a type name).
Values: never, head, always
member_chain_min_calls integer 3 A chain of member accesses and calls with at least this many calls is broken one call per line when it does not fit on a line (fluent style).
Values: 1..1000
member_chain_short_head integer 4 A name of at most this many characters at the head of a broken member chain stays on the line of the first call (x.foo()); a capitalized name, this, base, super and a keyword type always do.
Values: 0..100
member_chain_style string "fluent" Layout of a chain of member accesses and calls that does not fit: soft keeps the accesses in front of the first call with the head and, once there are member_chain_min_groups groups after it, puts every access that follows a call or an index on a line of its own, without indentation of its own; fluent breaks before every dot once there are member_chain_min_calls calls; grouped keeps the head, its calls and indexes in the first group and puts a call group per line after it (a chain of up to two groups stays on one line); wrapped keeps the accesses in front of the first call with the head and puts every later dot on a line of its own, a call after a block or argument list that ends on a line of its own staying on that line.
Values: fluent, grouped, wrapped, soft
parameter_attribute_layout string "inline" A parameter with attribute lists: inline keeps them in front of the parameter; hanging keeps them there when the parameter fits and otherwise puts the rest of the parameter on an indented line below them.
Values: inline, hanging
paren_condition_kinds array ["IfStatement","WhileStatement","DoStatement","LockStatement","SwitchStatement"] Kinds of statement whose parenthesized head (if (...), using (...)) breaks after the ( and before the ) when it does not fit. Other kinds keep the head’s parentheses against its content.
preprocessor_symbol_sets array [] Further sets of conditional compilation symbols. The file is also parsed with each set (a set replaces preprocessor_symbols), and the #if branches that are inactive under preprocessor_symbols but active under a set are formatted from that parse. Empty (the default) leaves inactive branches as they are.
preprocessor_symbols array [] Conditional compilation symbols (DEBUG, NET8_0) defined when parsing, which decide the active branch of #if. Branches that are inactive under these symbols stay as they are unless preprocessor_symbol_sets or derive_symbol_sets format them.
preserve_query_breaks boolean false A query expression with a line break in the source keeps one clause per line even when it fits on a line.
preserve_single_line_blocks boolean false A block written on one line (void M() { return; }, get { return x; }, if (a) followed by { b(); }) stays on one line, as { a; b; }, when it has no comment and no label in it. Type, namespace, enum and switch bodies written on one line stay as well.
preserve_single_line_statements boolean false Statements written on one line stay there: a(); b(); in a sequence, case 1: break;, and a whole if, while, for, foreach, do, try, using, lock, fixed, checked or unsafe statement (with its blocks) written on one line, unless it has a comment, a switch or a label in it.
separate_using_groups boolean false With sort_usings: one blank line between the System usings and the others (only with sort_usings_system_first).
skip_generated boolean true Leave generated files as written when formatting: a file whose name matches generated_names or whose leading comments contain one of generated_header_markers. A file named on the command line, read from stdin or open in the editor is treated the same. false formats them.
sort_usings boolean false Sort using directives like the using-order rule with compare: culture_ignore_case, static_position: after and alias_position: after (System first, then the others, using static, aliases), and join the groups: blank lines between directives go, comments above a directive move with it. global using directives come first, using global::X behind the System ones. #if regions stay as they are behind the sorted directives; a list with another preprocessor directive is left alone.
sort_usings_system_first boolean true With sort_usings: System namespaces come before the others (using static System.* before other using static).
space_after_delegate boolean true A space between delegate and the parameter list of an anonymous method (delegate (int x) { }); when false delegate(int x) { }.
space_after_empty_last_for_clause boolean false A space before the ) of a for whose last clause is empty (for (int i = 0; i < n; )); when false for (int i = 0; i < n;).
space_between_empty_for_clauses boolean false A space between the two semicolons of a for with an empty condition (for (; ;)); when false for (;;).
stacked_flush_kinds array [] Kinds of statement (using, fixed) whose body is another statement of the same kind: it goes on the next line at the same level, so that a stack of them reads like a list. Empty indents it like any embedded statement.
switch_arm_layout string "inline" Layout of a switch expression arm: inline keeps pattern => value as one run of tokens; assignment lays out the value like the right-hand side of = (see assignment_layout).
Values: inline, assignment
trailing_commas string "preserve" Trailing comma after the last element of initializers, collection expressions, enums and switch expressions: preserve keeps what the source has; never removes it; multiline adds one when the list is on several lines and removes it otherwise.
Values: preserve, never, multiline
unbreakable_single_item_lists boolean false Never break a list that holds one simple item: an attribute list with one attribute, a type argument list with one name, an index that is one name or literal.
wrapped_brace_line string "creation" Opening brace of an initializer or property pattern that is laid out on several lines: creation puts it on its own line for new T { ... } only; all also for an initializer nested in an assignment (Prop = { ... }) and for property patterns; none keeps it on the line of the expression.
Values: creation, all, none
Option Type Default Description
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
line_width integer 80 Preferred maximum line width in columns.
Values: 20..1000
max_blank_lines integer 1 Largest number of blank lines kept between statements and comments.
Values: 0..10
single_quote boolean false Write strings with single quotes. A string that holds more of the chosen quote than of the other keeps the other.
Option Type Default Description
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 4 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
max_blank_lines integer 1 Largest number of blank lines kept between instructions and comments.
Values: 0..10
Option Type Default Description
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
max_blank_lines integer 1 Largest number of blank lines kept between entries, sections and comments.
Values: 0..10
Option Type Default Description
array_bracket_spacing boolean false Spaces inside the brackets of a one-line sequence or array: [ 1, 2 ] or [1, 2].
blank_lines_after_key string "preserve" Blank lines between a key and its block value on the next line: preserve keeps them (up to max_blank_lines); remove drops them.
Values: preserve, remove
bracket_spacing boolean true Spaces inside the braces of a one-line mapping or object: { a: 1 } or {a: 1}.
comment_indent string "preserve" A comment on its own line after the end of a block collection: preserve keeps it with the outermost collection it is indented as deep as, content with the innermost one when it is deeper than the next token (so it is indented like the line before it or like the next token).
Values: preserve, content
comment_spacing integer 1 Spaces between a value and a comment after it on the same line.
Values: 1..10
document_end string "preserve" The ... marker: always ends every document with it, never leaves it out unless the next document has a directive or no ---, or the document is empty, preserve keeps what is written.
Values: preserve, always, never
document_start string "preserve" The --- marker: always starts every document with it, never leaves it out of the first document when that is possible, preserve keeps what is written.
Values: preserve, always, never
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
line_width integer 80 Preferred maximum line width in columns.
Values: 20..1000
max_blank_lines integer 1 Largest number of blank lines kept between entries, comments and documents.
Values: 0..10
quote_style string "preserve" Quote style of quoted scalars. With single and double a scalar keeps its quotes when the other style would change its value or need more escapes; prefer_double uses double quotes, except single quotes for text that contains a " (unless it has other escapes, which keep it as written).
Values: preserve, single, double, prefer_double
sequence_indent string "preserve" A block sequence that is the value of a mapping key: indented puts the dashes one level in, flush at the key’s column, preserve keeps each sequence as written.
Values: preserve, indented, flush
Option Type Default Description
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
max_blank_lines integer 1 Largest number of blank lines kept between patterns and comments.
Values: 0..10
Option Type Default Description
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
generated_header_markers array ["code generated *do not edit."] Texts (<auto-generated) that mark a generated file when they occur, case-insensitively, in the comments at the start of the file; a * stands for any text within one line (code generated *do not edit.). Read when skip_generated or skip_generated_lint is on.
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
skip_generated_lint boolean true Report nothing in generated files: a file whose name matches generated_names or whose leading comments contain one of generated_header_markers.
Option Type Default Description
bracket_spacing boolean true Spaces inside the braces of a one-line mapping or object: { a: 1 } or {a: 1}.
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
line_width integer 80 Preferred maximum line width in columns.
Values: 20..1000
Option Type Default Description
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
Option Type Default Description
bracket_same_line boolean false Put the > of a multi-line start tag at the end of the last attribute’s line.
content_newline_with_attributes boolean false Put the content of an element that has attributes on lines of its own, also when the element fits on a line; inline elements and pre keep theirs (vue/singleline-html-element-content-newline with its defaults).
content_newline_with_elements boolean false Put the children of an element that has an element child on lines of their own, also when they fit on a line; only where the whitespace between them is not significant (whitespace_sensitivity: ignore, @html-eslint/element-newline).
dialect string "auto" template: the file is a template whose {{ }} actions (Go templates, Hugo) stay as written; a block of actions (if … end) must open and close inside one element (a file that does not is not formatted); an action among the attributes is one attribute, kept as written. template-open: as template, and a block may span elements (the file is laid out by the tree of its markup); no end tag the source lacks is written and none of the source is dropped.
Values: auto, html, template, template-open
embedded_language_formatting string "auto" Format the code of <script> and <style> and of style, srcset and event-handler attributes with the formatter of its language (auto, Prettier’s embeddedLanguageFormatting), or keep it as written (off). Code that does not parse, or of a language that is not installed, is kept either way.
Values: auto, off
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_comment_lines boolean false Put the lines of a multi-line comment one level deeper than the comment and a closing --> on a line of its own at the comment’s level, whatever indentation they had (@html-eslint/indent); the default keeps them as written.
indent_expression_operands boolean false Indent the operands of a binary or logical expression that continues on following lines in an attribute or {{ }} expression (vue/html-indent); the default aligns them with the first operand.
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
line_width integer 80 Preferred maximum line width in columns.
Values: 20..1000
max_attributes_per_line integer 0 Put every attribute of a start tag that has more than this many on its own line (vue/max-attributes-per-line, @html-eslint/attrs-newline); 0 sets no limit. single_attribute_per_line is the limit 1.
Values: 0..100
self_closing_space boolean true Write a space before the /> of a self-closing element (<use />, <br />); off writes <use/> (@html-eslint/no-extra-spacing-tags).
single_attribute_per_line boolean false Put every attribute of a tag that has several on its own line.
void_element_style string "selfclose" How a void element (br, img, …) is written: selfclose as <br />, omit as <br> (void-style).
Values: selfclose, omit
whitespace_sensitivity string "css" Whether whitespace between inline elements and text is significant: css follows each element’s CSS display, strict treats every element as inline, ignore as block.
Values: css, strict, ignore
Option Type Default Description
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
max_blank_lines integer 1 Largest number of blank lines kept between settings, sections and comments.
Values: 0..10
space_around_equals boolean true Write key = value rather than key=value.
Option Type Default Description
assignment_conditional string "always" A conditional (a ? b : c) as the value of an assignment moves below the operator when it does not fit: always, or binary_test only when its test is an operator chain.
Values: always, binary_test
assignment_indent integer 2 Levels of indentation of a value that moves below the operator of an assignment.
Values: 1..4
assignment_layout string "break" Where the value after = (or =>) goes when the line is too long: compact moves a binary expression, a conditional or a query to the next line and leaves any other value on the line; fluid also moves strings, collection expressions and property initializers, and any other value whose first line does not fit after the operator (a string that spans lines stays on the operator’s line; the body of an expression lambda moves below =>; chains a = b = c get layouts of their own); break moves every value that does not fit; multiline does the same except for a value with no place to break a line, which stays.
Values: compact, fluid, break, multiline
binary_hug string "never" A broken operator chain leaves the indentation of its continuation lines to the layout around it: assignment for the value of an assignment, declaration or entry, statement also for the value of return and throw.
Values: never, assignment, statement
binary_indent integer 2 Levels of indentation of the continuation lines of a broken operator chain.
Values: 1..4
binary_operator_line string "start" Where an operator of a chain (a + b + c) that does not fit goes: start breaks before it and puts one operand per line; end keeps it at the end of the line and moves an operand down only when it does not fit (a chain that mixes node kinds breaks at every operator).
Values: start, end
conditional_indent integer 2 Levels of indentation of the branches of a broken conditional in the indented layout.
Values: 1..4
conditional_layout string "indented" Layout of a conditional (a ? b : c) that does not fit: indented puts the branches one level below the test, each conditional a group of its own; chained aligns the branches after ? and : and breaks a chain of conditionals in the else branch as one; ladder is indented, except that a chain of conditionals in the else branch puts every : test ? value on a line of its own at the level of the first test.
Values: indented, chained, ladder
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
hug_first_argument boolean false A function that is the first of two arguments stays on the call’s line while its body breaks (setTimeout(() => {...}, 500)), when the other argument is short.
hug_last_argument string "sole" A function, object or array that is the last argument stays on the call’s line while its body breaks: last for the last of any number of arguments, sole only for an argument that is alone, sole_bare only for a function alone that has no parameters or one without parentheses (x => ..., () => ...), never not at all.
Values: never, sole, sole_bare, last
indent_nested_binary boolean true Indent the operands of a binary expression that is itself an operand of a binary expression with an operator of another precedence (a && b || c).
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
line_width integer 100 Preferred maximum line width in columns.
Values: 20..1000
member_chain_break_on_block string "any" Break a member chain one call per line when it has an argument with a block body (a lambda or an anonymous class) even if the chain would fit: inner when a call other than the last has one, any when any call has one.
Values: never, inner, any
member_chain_head_calls array ["stream"] Calls that stay on the line of the head of a broken member chain when they are among its first two groups (list.stream()).
member_chain_indent integer 2 Levels of indentation of the lines of a broken member chain.
Values: 0..4
member_chain_keep_accesses string "head" In a broken member chain an access stays on the line of the call after it (.a.b() is one group) instead of starting a line of its own: always, or head in the first group only (which stays on the line of the head when the head name is short or a type name).
Values: never, head, always
member_chain_min_calls integer 2 A chain of member accesses and calls with at least this many calls is broken one call per line when it does not fit on a line (fluent style).
Values: 1..1000
member_chain_short_head integer 4 A name of at most this many characters at the head of a broken member chain stays on the line of the first call (x.foo()); a capitalized name, this, base, super and a keyword type always do.
Values: 0..100
type_use_annotations array ["org.jspecify.annotations.Nullable","org.jspecify.annotations.NonNull","org.checkerframework.*.Nullable","org.checkerframework.*.NonNull"] Annotations that belong to the type after them, not to the declaration (@Nullable String name): the fully qualified names the file imports them under, * standing for any text. They stay on the line of the declaration.
Option Type Default Description
arrow_parens string "always" Parentheses around the lone parameter of an arrow function: always writes (x) => x, avoid writes x => x when the parameter is a plain name (no type, default, rest or destructuring).
Values: always, avoid
assignment_conditional string "binary_test" A conditional (a ? b : c) as the value of an assignment moves below the operator when it does not fit: always, or binary_test only when its test is an operator chain.
Values: always, binary_test
assignment_destructure_kinds array ["ObjectPattern","ObjectAssignmentTarget"] Node kinds of a destructuring on the left of an assignment: one of more than two entries with a renamed or defaulted entry breaks in preference to the value.
assignment_generic_closure_kinds array ["VariableDeclarator"] Node kinds of declarations whose generic closure value (const f = <T>(a: T) => b) stays on the operator’s line while the left side breaks.
assignment_indent integer 1 Levels of indentation of a value that moves below the operator of an assignment.
Values: 1..4
assignment_layout string "fluid" Where the value after = (or =>) goes when the line is too long: compact moves a binary expression, a conditional or a query to the next line and leaves any other value on the line; fluid also moves strings, collection expressions and property initializers, and any other value whose first line does not fit after the operator (a string that spans lines stays on the operator’s line; the body of an expression lambda moves below =>; chains a = b = c get layouts of their own); break moves every value that does not fit; multiline does the same except for a value with no place to break a line, which stays.
Values: compact, fluid, break, multiline
assignment_op_token_skip_kinds array ["AssignmentExpression"] Node kinds of assignments whose operator is not searched for a line comment after it (the comment stays where it is); every other assignment keeps its value below the operator when a line comment follows the operator.
binary_hug string "statement" A broken operator chain leaves the indentation of its continuation lines to the layout around it: assignment for the value of an assignment, declaration or entry, statement also for the value of return and throw.
Values: never, assignment, statement
binary_indent integer 1 Levels of indentation of the continuation lines of a broken operator chain.
Values: 1..4
binary_operator_line string "end" Where an operator of a chain (a + b + c) that does not fit goes: start breaks before it and puts one operand per line; end keeps it at the end of the line and moves an operand down only when it does not fit (a chain that mixes node kinds breaks at every operator).
Values: start, end
bracket_same_line boolean false JSX: put the > of a multi-line element on the line of its last attribute instead of on a line of its own.
bracket_spacing boolean true Spaces inside the braces of a one-line mapping or object: { a: 1 } or {a: 1}.
conditional_indent integer 1 Levels of indentation of the branches of a broken conditional in the indented layout.
Values: 1..4
conditional_layout string "chained" Layout of a conditional (a ? b : c) that does not fit: indented puts the branches one level below the test, each conditional a group of its own; chained aligns the branches after ? and : and breaks a chain of conditionals in the else branch as one; ladder is indented, except that a chain of conditionals in the else branch puts every : test ? value on a line of its own at the level of the first test.
Values: indented, chained, ladder
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
hug_first_argument boolean true A function that is the first of two arguments stays on the call’s line while its body breaks (setTimeout(() => {...}, 500)), when the other argument is short.
hug_last_argument string "last" A function, object or array that is the last argument stays on the call’s line while its body breaks: last for the last of any number of arguments, sole only for an argument that is alone, sole_bare only for a function alone that has no parameters or one without parentheses (x => ..., () => ...), never not at all.
Values: never, sole, sole_bare, last
indent_nested_binary boolean true Indent the operands of a binary expression that is itself an operand of a binary expression with an operator of another precedence (a && b || c).
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
jsx_single_quote boolean false Single quotes for JSX attribute strings (a string with more of the preferred quote than of the other keeps the other one).
line_width integer 80 Preferred maximum line width in columns.
Values: 20..1000
member_chain_indent integer 1 Levels of indentation of the lines of a broken member chain.
Values: 0..4
member_chain_min_calls integer 3 A chain of member accesses and calls with at least this many calls is broken one call per line when it does not fit on a line (fluent style).
Values: 1..1000
member_chain_short_head integer 2 A name of at most this many characters at the head of a broken member chain stays on the line of the first call (x.foo()); a capitalized name, this, base, super and a keyword type always do.
Values: 0..100
member_chain_style string "grouped" Layout of a chain of member accesses and calls that does not fit: soft keeps the accesses in front of the first call with the head and, once there are member_chain_min_groups groups after it, puts every access that follows a call or an index on a line of its own, without indentation of its own; fluent breaks before every dot once there are member_chain_min_calls calls; grouped keeps the head, its calls and indexes in the first group and puts a call group per line after it (a chain of up to two groups stays on one line); wrapped keeps the accesses in front of the first call with the head and puts every later dot on a line of its own, a call after a block or argument list that ends on a line of its own staying on that line.
Values: fluent, grouped, wrapped, soft
quote_props string "as_needed" Quotes around property names of objects and destructuring patterns: as_needed removes quotes that are not required ("a": 1 becomes a: 1), consistent quotes every name of an object when one of its names requires quotes and removes them otherwise, preserve keeps what the source has. Numeric names are left as written.
Values: as_needed, consistent, preserve
quote_style string "double" Quotes of strings (not JSX attributes). A string with more of the preferred quote than of the other keeps the other one, to need fewer escapes.
Values: double, single
rewrite_parenthesize_pairs array ["TSIntersectionType","TSUnionType","TSTypeQuery","TSArrayType"] Pairs of node kinds (child, parent, child, parent, …): a node of the first kind directly inside one of the second gets parentheses around it.
semi boolean true End statements with ;. When false a statement that starts with (, [, a backtick, +, -, / or < gets a ; in front, as a class property does before a member that starts with [, ( or *.
trailing_commas string "all" Trailing comma of a list that breaks over several lines: all after every list including function parameters and call arguments, es5 after objects, arrays, destructuring and import/export lists only, none never.
Values: all, es5, none
type_argument_complex_kinds array ["TSUnionType","TSIntersectionType","TSTypeLiteral"] Node kinds of a lone type argument that make a call chain worth breaking inside (several type arguments always do).
Option Type Default Description
array_bracket_spacing boolean false Spaces inside the brackets of a one-line sequence or array: [ 1, 2 ] or [1, 2].
bracket_spacing boolean true Spaces inside the braces of a one-line mapping or object: { a: 1 } or {a: 1}.
collapse string "preserve" Objects and arrays on one line: preserve keeps one that has a line break between its brackets expanded and puts the others on one line if they fit; always puts every one that fits on one line; never puts every non-empty one on several lines; opening_break keeps an object expanded when a line break follows its opening brace and puts every array that fits on one line.
Values: preserve, always, never, opening_break
dialect string "auto" JSON or JSONC (comments, trailing commas); auto decides by file name.
Values: auto, json, jsonc
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
line_width integer 80 Preferred maximum line width in columns.
Values: 20..1000
trailing_commas string "never" Trailing commas after the last item of a multi-line object or array (JSONC only).
Values: never, multiline
Option Type Default Description
annotation_inline string "single" A declaration whose only annotation has no arguments keeps its declaration on the line of the annotation when the source has it there (@Test fun f()); never: every annotation of a declaration has a line of its own.
Values: never, single
annotation_source_kinds array ["ValueParameter"] Node kinds of declarations whose annotations stay on the lines where the source has them.
assignment_conditional string "always" A conditional (a ? b : c) as the value of an assignment moves below the operator when it does not fit: always, or binary_test only when its test is an operator chain.
Values: always, binary_test
assignment_hug_except_kinds array ["Fun"] Kinds of assignment (a declaration) whose value does not stay on the operator’s line when its kind is in assignment_hug_kinds.
assignment_hug_kinds array ["CollectionLiteralExpression","LabeledExpression","LambdaExpression"] Node kinds of a value that stays on the operator’s line and breaks inside (an array literal: entries = [).
assignment_indent integer 1 Levels of indentation of a value that moves below the operator of an assignment.
Values: 1..4
assignment_keep_break_kinds array ["Property","BinaryExpression","PropertyAccessor"] Node kinds of assignments and declarations whose value stays below the operator when the source has it there, whether or not it would fit on the line.
assignment_layout string "multiline" Where the value after = (or =>) goes when the line is too long: compact moves a binary expression, a conditional or a query to the next line and leaves any other value on the line; fluid also moves strings, collection expressions and property initializers, and any other value whose first line does not fit after the operator (a string that spans lines stays on the operator’s line; the body of an expression lambda moves below =>; chains a = b = c get layouts of their own); break moves every value that does not fit; multiline does the same except for a value with no place to break a line, which stays.
Values: compact, fluid, break, multiline
assignment_left_min_parameters integer 2 A declaration whose parameter list has at least this many parameters keeps a value that spans lines on the line of the operator (0: off).
Values: 0..1000
assignment_left_unless_kinds array ["Colon"] Node kinds among the children of a declaration (a return type’s colon) that turn off assignment_left_min_parameters.
block_comment_keep_tight boolean true A block comment written against the token after it (f(/*name=*/x)) stays against it; otherwise one blank follows the comment.
class_signature_wrap_min_parameters integer 1 A class with at least this many primary-constructor parameters puts each on a line of its own, even when the signature fits.
Values: 1..1000
class_signature_wrap_min_supertypes integer 2 A class or object with at least this many supertypes puts each on a line of its own.
Values: 1..1000
comment_reindent_lines boolean true The lines of a block comment keep their indentation relative to the comment’s own line when the comment moves.
comment_space_exempt array ["//region","//endregion","//noinspection","//language="] Prefixes of line comments (//region) that the rule comment-space leaves as they are when the formatter runs it. With the option set, a comment with a repeated marker (///) or -- after it gets its space too.
comment_trim_lines boolean true The lines of a block comment lose their trailing blanks.
ctor_own_line_kinds array ["AnnotationEntry"] Node kinds among the modifiers of a primary constructor (annotations) that put the constructor below the type name, one level in, with the supertypes and the body under that level.
curly_style string "chain" How the curly rule braces a body when the formatter runs it: always every body, chain the branches of a chain where one has braces, spans lines or passes the line width, and a loop body on its own line.
Values: always, chain
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
format_rules array ["curly","redundant-return-type","comment-space"] Ids of shared rules that rewrite the source before the layout (their fixes), besides those the language has a section for in format.rules.
function_signature_wrap_min_parameters integer 2 A function or constructor with at least this many parameters puts each on a line of its own, even when the signature fits.
Values: 1..1000
indent_size integer 4 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
line_width integer 140 Preferred maximum line width in columns.
Values: 20..1000
member_chain_force_links integer 4 A chain of member accesses and calls with at least this many dots always breaks (wrapped style; 0: never).
Values: 0..1000
member_chain_indent integer 1 Levels of indentation of the lines of a broken member chain.
Values: 0..4
member_chain_min_calls integer 2 A chain of member accesses and calls with at least this many calls is broken one call per line when it does not fit on a line (fluent style).
Values: 1..1000
member_chain_style string "wrapped" Layout of a chain of member accesses and calls that does not fit: soft keeps the accesses in front of the first call with the head and, once there are member_chain_min_groups groups after it, puts every access that follows a call or an index on a line of its own, without indentation of its own; fluent breaks before every dot once there are member_chain_min_calls calls; grouped keeps the head, its calls and indexes in the first group and puts a call group per line after it (a chain of up to two groups stays on one line); wrapped keeps the accesses in front of the first call with the head and puts every later dot on a line of its own, a call after a block or argument list that ends on a line of its own staying on that line.
Values: fluent, grouped, wrapped, soft
open_comment_inside_parents array ["Try","Catch","Finally"] Node kinds whose braced body moves a comment after its { to the first body line; a body of any other kind keeps the comment on the { line. Empty: every body moves it.
raw_string_calls array ["trimIndent","trimMargin"] Names of the calls (trimIndent) that strip the common indentation of a multi-line raw string they follow: its lines are written at the indentation of the code around it.
redundant_return_types array ["Unit"] Return types (Unit) that a function with a block body has anyway: the rule redundant-return-type leaves them out when the formatter runs it (format_rules).
redundant_template_braces array ["LongStringTemplateEntry"] String template entries of these kinds (${name}) lose their braces when they hold one plain name and the text after them cannot continue it.
semicolon_keep_parents array ["ClassBody","EnumEntry"] ; between and after statements is redundant: one at the end of a line is removed, one between two statements of a line becomes a line break, except in nodes of these kinds (where it separates other things).
settle_keywords array ["if","else","for","while"] Keywords of statements whose braces depend on the line width. A file whose formatted output has a line that starts with one, has a body after its head on the same line (no {) and is followed by a deeper-indented line is rewritten once more, since the layout moved the code.
signature_wrap_annotated boolean true A signature with an annotated parameter puts each parameter on a line of its own, even when it fits.
single_block_comment_as_line boolean true A block comment that sits on one line and ends its line in the output is written as a line comment (/* note */ becomes // note). Documentation comments (/**) and empty comments stay.
single_line_body_kinds array ["EnumEntry"] Node kinds of entries a braced body made only of them keeps on one line when the source has it on one line (enum class E { A, B }).
trailing_comma_before array ["WhenEntry","->"] Pairs of a node kind and the token that ends its comma-separated list (WhenEntry ->): a list that spans lines gets a trailing comma and the token goes on a line of its own.
trailing_comma_last_entry array ["ClassBody","EnumEntry"] Pairs of a body kind and an entry kind (ClassBody EnumEntry): the last entry gets a trailing comma when the entries are one per line or several over several lines.
trailing_commas string "multiline" Trailing comma after the last argument or parameter of a call or declaration that is laid out on several lines: multiline adds one, never removes it.
Values: never, multiline
wrapped_body_indent_words array ["constructor"] Words (constructor) that start a primary constructor which, when the supertypes go one per line, puts the body one level further in (its closing brace under the supertypes).
Option Type Default Description
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
line_width integer 80 Preferred maximum line width in columns.
Values: 20..1000
max_blank_lines integer 1 Largest number of blank lines kept between statements and comments.
Values: 0..10
single_quote boolean false Write strings with single quotes. A string that holds more of the chosen quote than of the other keeps the other.
Option Type Default Description
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
max_blank_lines integer 2 Largest number of blank lines kept between statements and comments.
Values: 0..10
space_around_assignment boolean true Write A := b rather than A:=b.
space_before_colon boolean false Write target : prerequisite rather than target: prerequisite.
Option Type Default Description
embedded_language_formatting string "auto" Format the code of a fenced block with the formatter of the language its info string names (auto, Prettier’s embeddedLanguageFormatting), or keep it as written (off). Code that does not parse, or of a language that is not installed, is kept either way.
Values: auto, off
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
keep_together_kinds array ["LinkDef","Html","Inline>Html"] Block kinds of which two in a row with no blank line between them in the source stay without one; A>B is a block of kind B right after one of kind A (an HTML block after a paragraph).
Option Type Default Description
declaration_brace string "next_line" Where the { of a class, interface, trait, enum, function or method goes (PER Coding Style: its own line). Control structures, closures and anonymous classes keep it on the line.
Values: next_line, same_line
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 4 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
line_width integer 120 Preferred maximum line width in columns.
Values: 20..1000
trailing_commas string "multiline" Trailing comma after the last argument, parameter or match arm of a list that is laid out on several lines: multiline adds one, never removes it.
Values: never, multiline
Option Type Default Description
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 4 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
max_blank_lines integer 10 Largest number of blank lines kept between statements and comments.
Values: 0..10
Option Type Default Description
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
Option Type Default Description
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 4 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
line_width integer 88 Preferred maximum line width in columns.
Values: 20..1000
magic_trailing_comma string "respect" respect keeps a collection, call or parameter list that has a trailing comma expanded one item per line; ignore joins it when it fits and removes the comma.
Values: respect, ignore
member_chain_indent integer 0 Levels of indentation of the lines of a broken member chain.
Values: 0..4
member_chain_keep_accesses string "always" In a broken member chain an access stays on the line of the call after it (.a.b() is one group) instead of starting a line of its own: always, or head in the first group only (which stays on the line of the head when the head name is short or a type name).
Values: never, head, always
member_chain_min_groups integer 2 A chain of member accesses and calls with fewer groups after the one on the head’s line is never broken at the dots (soft style).
Values: 0..1000
member_chain_style string "soft" Layout of a chain of member accesses and calls that does not fit: soft keeps the accesses in front of the first call with the head and, once there are member_chain_min_groups groups after it, puts every access that follows a call or an index on a line of its own, without indentation of its own; fluent breaks before every dot once there are member_chain_min_calls calls; grouped keeps the head, its calls and indexes in the first group and puts a call group per line after it (a chain of up to two groups stays on one line); wrapped keeps the accesses in front of the first call with the head and puts every later dot on a line of its own, a call after a block or argument list that ends on a line of its own staying on that line.
Values: fluent, grouped, wrapped, soft
paren_line_end_parents array ["ExprAwait","StmtDelete","StmtAssert"] Node kinds whose parenthesized operand ends the logical line with a comment after the closing parenthesis: the pair goes and the comment is the line’s.
quote_style string "double" Quotes of strings (and of f-string and t-string literals): double or single rewrite a string to that quote unless the other one needs fewer escapes, preserve keeps what the source has.
Values: double, single, preserve
target_version string "3.14" The Python version whose syntax the file must follow: newer syntax is a syntax error (lazy import needs 3.15).
Values: 3.9, 3.10, 3.11, 3.12, 3.13, 3.14, 3.15
Option Type Default Description
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
line_width integer 120 Preferred maximum line width in columns.
Values: 20..1000
max_blank_lines integer 1 Largest number of blank lines kept between lines (RuboCop Layout/EmptyLines).
Values: 0..10
Option Type Default Description
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
line_width integer 80 Preferred maximum line width in columns.
Values: 20..1000
max_blank_lines integer 1 Largest number of blank lines kept between statements and comments.
Values: 0..10
single_quote boolean false Write strings with single quotes. A string that holds more of the chosen quote than of the other keeps the other.
Option Type Default Description
case_last_terminator string "keep" The last arm of a case without ;;: keep leaves it as written, add ends it with ;;.
Values: keep, add
comment_column string "keep" A comment after code: keep leaves the blanks before it as written (at least one); align writes one blank, or pads it so that the trailing comments of consecutive lines start in one column.
Values: keep, align
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
heredoc_indent string "keep" The body and the delimiter of a <<- heredoc: keep leaves them as written; reindent drops their leading tabs (which <<- ignores) and indents the body one level and the delimiter as deep as the command (tab indentation only).
Values: keep, reindent
indent_size integer 4 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "tab" Indent with spaces or tabs.
Values: space, tab
max_blank_lines integer 1 Largest number of blank lines kept between statements and comments.
Values: 0..10
Option Type Default Description
alter_table_indent boolean false Indent the actions of ALTER TABLE name one level under the statement.
block_indent boolean false Indent the bodies of BEGIN, LOOP, WHILE, REPEAT, IF and CASE blocks one level under their opener.
comma_position string "trailing" Where a comma goes when a list is broken over lines: at the end of a line, or at the start of the next one.
Values: trailing, leading
dialect string "ansi" The SQL dialect the file is parsed as.
Values: ansi, postgres, mysql, tsql
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
function_case string "consistent" Case of function names: consistent follows the first one written (all that follow are brought to its case once one differs), the others set it.
Values: consistent, upper, lower, capitalise
identifier_case string "consistent" Case of unquoted identifiers: consistent follows the first one written (all that follow are brought to its case once one differs), the others set it.
Values: consistent, upper, lower, capitalise
indent_size integer 4 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
keyword_case string "consistent" Case of keywords: consistent follows the first one written (all that follow are brought to its case once one differs), the others set it.
Values: consistent, upper, lower, capitalise
line_width integer 80 Preferred maximum line width in columns.
Values: 20..1000
literal_case string "consistent" Case of NULL, TRUE and FALSE: consistent follows the first one written (all that follow are brought to its case once one differs), the others set it.
Values: consistent, upper, lower, capitalise
type_case string "consistent" Case of data types: consistent follows the first one written (all that follow are brought to its case once one differs), the others set it.
Values: consistent, upper, lower, capitalise
Option Type Default Description
bracket_same_line boolean false Put the > of a multi-line start tag at the end of the last attribute’s line.
content_newline_with_attributes boolean false Put the content of an element that has attributes on lines of its own, also when the element fits on a line; inline elements and pre keep theirs (vue/singleline-html-element-content-newline with its defaults).
content_newline_with_elements boolean false Put the children of an element that has an element child on lines of their own, also when they fit on a line; only where the whitespace between them is not significant (whitespace_sensitivity: ignore, @html-eslint/element-newline).
embedded_language_formatting string "auto" Format the code of <script> and <style> and of style, srcset and event-handler attributes with the formatter of its language (auto, Prettier’s embeddedLanguageFormatting), or keep it as written (off). Code that does not parse, or of a language that is not installed, is kept either way.
Values: auto, off
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_comment_lines boolean false Put the lines of a multi-line comment one level deeper than the comment and a closing --> on a line of its own at the comment’s level, whatever indentation they had (@html-eslint/indent); the default keeps them as written.
indent_expression_operands boolean false Indent the operands of a binary or logical expression that continues on following lines in an attribute or {{ }} expression (vue/html-indent); the default aligns them with the first operand.
indent_script_and_style boolean true Indent the content of the root <script> and <style> blocks of a .svelte file by one level.
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
line_width integer 80 Preferred maximum line width in columns.
Values: 20..1000
max_attributes_per_line integer 0 Put every attribute of a start tag that has more than this many on its own line (vue/max-attributes-per-line, @html-eslint/attrs-newline); 0 sets no limit. single_attribute_per_line is the limit 1.
Values: 0..100
self_closing_space boolean true Write a space before the /> of a self-closing element (<use />, <br />); off writes <use/> (@html-eslint/no-extra-spacing-tags).
single_attribute_per_line boolean false Put every attribute of a tag that has several on its own line.
void_element_style string "selfclose" How a void element (br, img, …) is written: selfclose as <br />, omit as <br> (void-style).
Values: selfclose, omit
whitespace_sensitivity string "css" Whether whitespace between inline elements and text is significant: css follows each element’s CSS display, strict treats every element as inline, ignore as block.
Values: css, strict, ignore
Option Type Default Description
align_comments boolean false Start the trailing comments of consecutive entries in one column (entries with no blank line or comment line between them); a run with an entry on several lines is not aligned.
array_bracket_spacing boolean false Spaces inside the brackets of a one-line sequence or array: [ 1, 2 ] or [1, 2].
bracket_spacing boolean true Spaces inside the braces of a one-line mapping or object: { a: 1 } or {a: 1}.
collapse string "preserve" Arrays on one line: preserve keeps one that has a line break between its brackets expanded and puts the others on one line if they fit; always puts every one that fits on one line; never puts every non-empty one on several lines.
Values: preserve, always, never
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
line_width integer 80 Preferred maximum line width in columns.
Values: 20..1000
max_blank_lines integer 1 Largest number of blank lines kept between entries, tables and comments.
Values: 0..10
trailing_commas string "multiline" Trailing comma after the last item of a multi-line array.
Values: never, multiline
Option Type Default Description
bracket_same_line boolean false Put the > of a multi-line start tag at the end of the last attribute’s line.
content_newline_with_attributes boolean false Put the content of an element that has attributes on lines of its own, also when the element fits on a line; inline elements and pre keep theirs (vue/singleline-html-element-content-newline with its defaults).
content_newline_with_elements boolean false Put the children of an element that has an element child on lines of their own, also when they fit on a line; only where the whitespace between them is not significant (whitespace_sensitivity: ignore, @html-eslint/element-newline).
embedded_language_formatting string "auto" Format the code of <script> and <style> and of style, srcset and event-handler attributes with the formatter of its language (auto, Prettier’s embeddedLanguageFormatting), or keep it as written (off). Code that does not parse, or of a language that is not installed, is kept either way.
Values: auto, off
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_comment_lines boolean false Put the lines of a multi-line comment one level deeper than the comment and a closing --> on a line of its own at the comment’s level, whatever indentation they had (@html-eslint/indent); the default keeps them as written.
indent_expression_operands boolean false Indent the operands of a binary or logical expression that continues on following lines in an attribute or {{ }} expression (vue/html-indent); the default aligns them with the first operand.
indent_script_and_style boolean false Indent the content of the root <script> and <style> blocks of a .vue file by one level.
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
line_width integer 80 Preferred maximum line width in columns.
Values: 20..1000
max_attributes_per_line integer 0 Put every attribute of a start tag that has more than this many on its own line (vue/max-attributes-per-line, @html-eslint/attrs-newline); 0 sets no limit. single_attribute_per_line is the limit 1.
Values: 0..100
self_closing_space boolean true Write a space before the /> of a self-closing element (<use />, <br />); off writes <use/> (@html-eslint/no-extra-spacing-tags).
single_attribute_per_line boolean false Put every attribute of a tag that has several on its own line.
void_element_style string "selfclose" How a void element (br, img, …) is written: selfclose as <br />, omit as <br> (void-style).
Values: selfclose, omit
whitespace_sensitivity string "css" Whether whitespace between inline elements and text is significant: css follows each element’s CSS display, strict treats every element as inline, ignore as block.
Values: css, strict, ignore
Option Type Default Description
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
indent_style string "space" Indent with spaces or tabs.
Values: space, tab
line_width integer 100 Preferred maximum line width in columns.
Values: 20..1000
max_blank_lines integer 1 Largest number of blank lines kept between elements, comments and declarations.
Values: 0..10
Option Type Default Description
array_bracket_spacing boolean false Spaces inside the brackets of a one-line sequence or array: [ 1, 2 ] or [1, 2].
blank_lines_after_key string "preserve" Blank lines between a key and its block value on the next line: preserve keeps them (up to max_blank_lines); remove drops them.
Values: preserve, remove
bracket_spacing boolean true Spaces inside the braces of a one-line mapping or object: { a: 1 } or {a: 1}.
comment_indent string "preserve" A comment on its own line after the end of a block collection: preserve keeps it with the outermost collection it is indented as deep as, content with the innermost one when it is deeper than the next token (so it is indented like the line before it or like the next token).
Values: preserve, content
comment_spacing integer 1 Spaces between a value and a comment after it on the same line.
Values: 1..10
document_end string "preserve" The ... marker: always ends every document with it, never leaves it out unless the next document has a directive or no ---, or the document is empty, preserve keeps what is written.
Values: preserve, always, never
document_start string "preserve" The --- marker: always starts every document with it, never leaves it out of the first document when that is possible, preserve keeps what is written.
Values: preserve, always, never
end_of_line string "auto" Line break style of the output: lf, crlf, or auto to keep the file’s first line break.
Values: auto, lf, crlf
final_newline boolean true End the file with a newline.
indent_size integer 2 Columns per indentation level (also the width of a tab).
Values: 1..16
line_width integer 80 Preferred maximum line width in columns.
Values: 20..1000
max_blank_lines integer 1 Largest number of blank lines kept between entries, comments and documents.
Values: 0..10
quote_style string "preserve" Quote style of quoted scalars. With single and double a scalar keeps its quotes when the other style would change its value or need more escapes; prefer_double uses double quotes, except single quotes for text that contains a " (unless it has other escapes, which keep it as written).
Values: preserve, single, double, prefer_double
sequence_indent string "preserve" A block sequence that is the value of a mapping key: indented puts the dashes one level in, flush at the key’s column, preserve keeps each sequence as written.
Values: preserve, indented, flush