ReSharper 2017.2 Help

C++ - Tabs and indents

Tabs and indents

Indent style

Property names:

cpp_indent_style, indent_style

Possible values:

  • space: Spaces
  • tab: Tab

Examples:

space
if·(condition) { ····if·(condition1) ····{ ········foo1(); ········foo2(); ····} ····else ····{ ········foo3(); ········foo4(); ····} }
tab
if·(condition) {if·(condition1){ →→foo1(); →→foo2();}else{ →→foo3(); →→foo4();} }

Indent size

Property names:

cpp_indent_size, indent_size

Possible values:

an integer

Examples:

value: 0
if·(condition) { ·if·(condition1) ·{ ··foo1(); ··foo2(); ·} ·else ·{ ··foo3(); ··foo4(); ·} }
value: 1
if·(condition) { ·if·(condition1) ·{ ··foo1(); ··foo2(); ·} ·else ·{ ··foo3(); ··foo4(); ·} }
value: 2
if·(condition) { ··if·(condition1) ··{ ····foo1(); ····foo2(); ··} ··else ··{ ····foo3(); ····foo4(); ··} }

Tab width

Property names:

cpp_tab_width, tab_width

Possible values:

an integer

Examples:

value: 0
if·(condition) {if·(condition1){ →→foo1(); →→foo2();}else{ →→foo3(); →→foo4();} }
value: 1
if·(condition) {if·(condition1){ →→foo1(); →→foo2();}else{ →→foo3(); →→foo4();} }
value: 2
if·(condition) {if·(condition1){ →→foo1(); →→foo2();}else{ →→foo3(); →→foo4();} }
Last modified: 14 December 2017