TypeScript の EditorConfig プロパティ: 波括弧レイアウト
波括弧レイアウト
タイプとモジュール
プロパティ名:
[resharper_]js_types_braces , [resharper_]types_braces
使用可能な値:
end_of_line: 行末 (K&R スタイル)end_of_line_no_space: 行末 (空白なし)next_line: 次の行に (BSD スタイル)next_line_shifted: 次の行のインデント時に (ホワイトスミススタイル)next_line_shifted_2: 次の行インデント 2 (GNU スタイル)pico: コンパクト (ピコスタイル)
例:
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;
}
} |
ピコ |
|---|
module M
{ class C
{ public f: number; }
interface I
{ f: number; } } |
2024 年 5 月 26 日