ReSharper 2017.2 Help

TypeScript - Braces Layout

Braces layout

Types and modules

Property names:

[resharper_]js_types_braces, [resharper_]types_braces

Possible values:

  • next_line_shifted: At next line indented (Whitesmiths style)
  • next_line_shifted_2: At next line indented 2 (GNU style)
  • next_line: At next line (BSD style)
  • end_of_line: At end of line (K&R style)
  • end_of_line_no_space: At end of line (no space)

Examples:

next_line_shifted
module·M ··{ ··class·C ····{ ····public·fnumber; ····} ··interface·I ····{ ····fnumber; ····} ··}
next_line_shifted_2
module·M ··{ ····class·C ······{ ········public·fnumber; ······} ····interface·I ······{ ········fnumber; ······} ··}
next_line
module·M { ··class·C ··{ ····public·fnumber; ··} ··interface·I ··{ ····fnumber; ··} }
end_of_line
module·{ ··class·{ ····public·fnumber; ··} ··interface·{ ····fnumber; ··} }
end_of_line_no_space
module·M{ ··class·C{ ····public·fnumber; ··} ··interface·I{ ····fnumber; ··} }
Last modified: 12 October 2017