TypeScript - Line Breaks
Last modified: 21 July 2022Blank lines
Min blank lines around fields and signature declarations
Property names:
[resharper_]js_min_blank_lines_around_fields
, [resharper_]min_blank_lines_around_fields
Possible values:
an integer
Examples:
Before formatting | After formatting, value: 0 |
---|---|
|
|
Before formatting | After formatting, value: 1 |
---|---|
|
|
Before formatting | After formatting, value: 2 |
---|---|
|
|
Min blank lines around types and modules
Property names:
[resharper_]js_min_blank_lines_around_types
, [resharper_]min_blank_lines_around_types
Possible values:
an integer
Examples:
Before formatting | After formatting, value: 0 |
---|---|
|
|
Before formatting | After formatting, value: 1 |
---|---|
|
|
Before formatting | After formatting, value: 2 |
---|---|
|
|
Line breaks
Enumerations
Property names:
[resharper_]js_wrap_enum_style
, [resharper_]wrap_enum_style
Possible values:
do_not_change
: Do not changeon_single_line
: Force put on single lineline_break
: Force line breaks
Examples:
Before formatting | After formatting, do_not_change |
---|---|
|
|
Before formatting | After formatting, on_single_line |
---|---|
|
|
Before formatting | After formatting, line_break |
---|---|
|
|
Wrapping and chopping
Wrap union type usage
Property names:
[resharper_]js_wrap_union_type_usage
, [resharper_]wrap_union_type_usage
Possible values:
wrap_if_long
: Simple wrapchop_if_long
: Chop if long or multilinechop_always
: Chop always
Examples:
Before formatting | After formatting, wrap_if_long |
---|---|
|
|
Before formatting | After formatting, chop_if_long |
---|---|
|
|
Before formatting | After formatting, chop_always |
---|---|
|
|
Place on a new line
Place each decorator on a new line
Property names:
[resharper_]js_place_each_decorator_on_new_line
, [resharper_]place_each_decorator_on_new_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Class decorators on the same line with class
Property names:
[resharper_]js_place_class_decorator_on_the_same_line
, [resharper_]place_class_decorator_on_the_same_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Method decorators on the same line with signature
Property names:
[resharper_]js_place_method_decorator_on_the_same_line
, [resharper_]place_method_decorator_on_the_same_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Property decorators on the same line with property
Property names:
[resharper_]js_place_property_decorator_on_the_same_line
, [resharper_]place_property_decorator_on_the_same_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|
Field decorators on the same line with field
Property names:
[resharper_]js_place_field_decorator_on_the_same_line
, [resharper_]place_field_decorator_on_the_same_line
Possible values:
true | false
Examples:
true |
---|
|
false |
---|
|