ReSharper 2019.3 Help

C++ - Tabs and Indents

Tabs and Indents

Indent style

Property names:

indent_style, [resharper_]cpp_indent_style

Possible values:

  • tab: Tab

  • space: Spaces

Examples:

tab

if(condition)

space

if(condition)

Indent size

Property names:

indent_size, [resharper_]cpp_indent_size

Possible values:

an integer

Examples:

value: 0

if(condition)

value: 1

if(condition)

value: 2

if(condition)

Tab width

Property names:

tab_width, [resharper_]cpp_tab_width

Possible values:

an integer

Examples:

value: 0

if(condition)

value: 1

if(condition)

value: 2

if(condition)

How to align when tabs are used for indents

Property names:

[resharper_]cpp_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: 16 April 2020