EditorConfig properties for TypeScript: Braces Layout
Braces layout
Types and modules
Property names:
[resharper_]js_types_braces
, [resharper_]types_braces
Possible values:
end_of_line
: At the end of line (K&R style)end_of_line_no_space
: At the end of line (no space)next_line
: At next line (BSD style)next_line_shifted
: At next line indented (Whitesmiths style)next_line_shifted_2
: At next line indented 2 (GNU style)pico
: Compact (Pico style)
Examples:
end_of_line |
---|
module M {
class C {
public f: number;
}
interface I {
f: number;
}
} |
end_of_line_no_space |
---|
module M{
class C{
public f: number;
}
interface I{
f: number;
}
} |
next_line |
---|
module M
{
class C
{
public f: number;
}
interface I
{
f: number;
}
} |
next_line_shifted |
---|
module M
{
class C
{
public f: number;
}
interface I
{
f: number;
}
} |
next_line_shifted_2 |
---|
module M
{
class C
{
public f: number;
}
interface I
{
f: number;
}
} |
pico |
---|
module M
{ class C
{ public f: number; }
interface I
{ f: number; } } |
Last modified: 27 March 2023