EditorConfig properties for HTML: Formatting Style
tip
Formatting preferences listed on this page can be also configured visually, on the Code Editing | HTML | Formatting Style | Formatting Style page of ReSharper options Alt+R, O.
indent_style
, [resharper_]html_indent_style
tab
: Tabspace
: Spaces
tab |
---|
|
space |
---|
|
indent_size
, [resharper_]html_indent_size
an integer
value: 0 |
---|
|
value: 1 |
---|
|
value: 2 |
---|
|
tab_width
, [resharper_]html_tab_width
an integer
value: 0 |
---|
|
value: 1 |
---|
|
value: 2 |
---|
|
[resharper_]html_alignment_tab_fill_style
, [resharper_]alignment_tab_fill_style
use_spaces
: Use spaces (looks aligned on any tab size)use_tabs_only
: Only use tabs (inaccurate)optimal_fill
: Mix tabs and spaces for optimal fill
[resharper_]html_allow_far_alignment
, [resharper_]allow_far_alignment
Allow alignment even if construct is located too far to the right, more than 2/3 of `Hard wrap at` limit
true | false
[resharper_]html_spaces_around_eq_in_pi_attribute
, [resharper_]spaces_around_eq_in_pi_attribute
true | false
true |
---|
|
false |
---|
|
[resharper_]html_space_after_last_pi_attribute
, [resharper_]space_after_last_pi_attribute
true | false
true |
---|
|
false |
---|
|
[resharper_]html_pi_attribute_style
, [resharper_]pi_attribute_style
on_single_line
: On single linefirst_attribute_on_single_line
: First attribute on single lineon_different_lines
: Each attribute on separate linesdo_not_touch
: Do not touch
on_single_line |
---|
|
first_attribute_on_single_line |
---|
|
on_different_lines |
---|
|
do_not_touch |
---|
|
[resharper_]html_pi_attributes_indent
, [resharper_]pi_attributes_indent
single_indent
: Single indentdouble_indent
: Double indentalign_by_first_attribute
: Align by first attribute
single_indent |
---|
|
double_indent |
---|
|
align_by_first_attribute |
---|
|
[resharper_]html_blank_line_after_pi
, [resharper_]blank_line_after_pi
true | false
true |
---|
|
false |
---|
|
[resharper_]html_spaces_around_eq_in_attribute
, [resharper_]spaces_around_eq_in_attribute
true | false
true |
---|
|
false |
---|
|
[resharper_]html_space_after_last_attribute
, [resharper_]space_after_last_attribute
true | false
true |
---|
|
false |
---|
|
[resharper_]html_space_before_self_closing
, [resharper_]space_before_self_closing
true | false
true |
---|
|
false |
---|
|
[resharper_]html_attribute_style
, [resharper_]attribute_style
on_single_line
: On single linefirst_attribute_on_single_line
: First attribute on single lineon_different_lines
: Each attribute on separate linesdo_not_touch
: Do not touch
on_single_line |
---|
|
first_attribute_on_single_line |
---|
|
on_different_lines |
---|
|
do_not_touch |
---|
|
[resharper_]html_attribute_indent
, [resharper_]attribute_indent
single_indent
: Single indentdouble_indent
: Double indentalign_by_first_attribute
: Align by first attribute
single_indent |
---|
|
double_indent |
---|
|
align_by_first_attribute |
---|
|
[resharper_]html_sort_attributes
, [resharper_]sort_attributes
true | false
true |
---|
|
false |
---|
|
[resharper_]html_sort_class_selectors
, [resharper_]sort_class_selectors
true | false
true |
---|
|
false |
---|
|
[resharper_]html_max_blank_lines_between_tags
, [resharper_]max_blank_lines_between_tags
an integer
value: 0 |
---|
|
value: 1 |
---|
|
value: 2 |
---|
|
[resharper_]html_linebreak_before_all_elements
, [resharper_]linebreak_before_all_elements
true | false
true |
---|
|
false |
---|
|
[resharper_]html_linebreak_before_multiline_elements
, [resharper_]linebreak_before_multiline_elements
true | false
true |
---|
|
false |
---|
|
[resharper_]html_linebreak_before_elements
, [resharper_]linebreak_before_elements
[resharper_]html_no_indent_inside_elements
, [resharper_]no_indent_inside_elements
[resharper_]html_no_indent_inside_if_element_longer_than
, [resharper_]no_indent_inside_if_element_longer_than
an integer
[resharper_]html_preserve_spaces_inside_tags
, [resharper_]preserve_spaces_inside_tags
[resharper_]html_linebreaks_inside_tags_for_multiline_elements
, [resharper_]linebreaks_inside_tags_for_multiline_elements
true | false
true |
---|
|
false |
---|
|
[resharper_]html_linebreaks_inside_tags_for_elements_with_child_elements
, [resharper_]linebreaks_inside_tags_for_elements_with_child_elements
true | false
true |
---|
|
false |
---|
|
insert_final_newline
, [resharper_]html_insert_final_newline
true | false
[resharper_]html_extra_spaces
, [resharper_]extra_spaces
remove_all
: Remove all extra spacesleave_tabs
: Leave extra tabsleave_multiple
: Leave multiple extra spacesleave_all
: Leave all extra spaces and tabs
Before formatting | After formatting, remove_all |
---|---|
|
|
Before formatting | After formatting, leave_tabs |
---|---|
|
|
Before formatting | After formatting, leave_multiple |
---|---|
|
|
Before formatting | After formatting, leave_all |
---|---|
|
|