JetBrains Rider 2018.2 Help

Css - Tabs and Indents

Tabs and Indents

Indent style

Property names:

css_indent_style, indent_style

Possible values:

  • tab: Tab

  • space: Spaces

Examples:

tab

a,·br,·body,·p,·font,·div·{color:·blue;font:·small;background-color:·transparent;padding:·0·0·0·0; }

space

a,·br,·body,·p,·font,·div·{ ····color:·blue; ····font:·small; ····background-color:·transparent; ····padding:·0·0·0·0; }

Indent size

Property names:

css_indent_size, indent_size

Possible values:

an integer

Examples:

value: 0

a,·br,·body,·p,·font,·div·{ ·color:·blue; ·font:·small; ·background-color:·transparent; ·padding:·0·0·0·0; }

value: 1

a,·br,·body,·p,·font,·div·{ ·color:·blue; ·font:·small; ·background-color:·transparent; ·padding:·0·0·0·0; }

value: 2

a,·br,·body,·p,·font,·div·{ ··color:·blue; ··font:·small; ··background-color:·transparent; ··padding:·0·0·0·0; }

Tab width

Property names:

css_tab_width, tab_width

Possible values:

an integer

Examples:

value: 0

a,·br,·body,·p,·font,·div·{color:·blue;font:·small;background-color:·transparent;padding:·0·0·0·0; }

value: 1

a,·br,·body,·p,·font,·div·{color:·blue;font:·small;background-color:·transparent;padding:·0·0·0·0; }

value: 2

a,·br,·body,·p,·font,·div·{color:·blue;font:·small;background-color:·transparent;padding:·0·0·0·0; }

How to align when tabs are used for indents

Property names:

[resharper_]css_alignment_tab_fill_style, [resharper_]alignment_tab_fill_style

Possible values:

  • 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

Last modified: 4 October 2018