C++ の EditorConfig プロパティ: 空白行
既存のフォーマットを保持する
宣言内の最大空白行を保持する
プロパティ名:
[resharper_]cpp_keep_blank_lines_in_declarations, [resharper_]keep_blank_lines_in_declarations
可能な値:
整数
例:
値: 0 |
|---|
void f()
{
}
void g()
{
}
|
値: 1 |
|---|
void f()
{
}
void g()
{
}
|
値: 2 |
|---|
void f()
{
}
void g()
{
}
|
コード内の最大空白行を保持する
プロパティ名:
[resharper_]cpp_keep_blank_lines_in_code, [resharper_]keep_blank_lines_in_code
可能な値:
整数
例:
値: 0 |
|---|
void f()
{
g();
g();
}
|
値: 1 |
|---|
void f()
{
g();
g();
}
|
値: 2 |
|---|
void f()
{
g();
g();
}
|
宣言の '{' の後および '}' の前の空白行を削除する
プロパティ名:
[resharper_]cpp_remove_blank_lines_near_braces_in_declarations, [resharper_]remove_blank_lines_near_braces_in_declarations
可能な値:
true | false
例:
true |
|---|
class A
{
public:
int x;
private:
int y;
};
|
false |
|---|
class A
{
public:
int x;
private:
int y;
};
|
コードの '{' の後および '}' の前の空白行を削除する
プロパティ名:
[resharper_]cpp_remove_blank_lines_near_braces_in_code, [resharper_]remove_blank_lines_near_braces_in_code
可能な値:
true | false
例:
true |
|---|
void f()
{
int x;
int y;
return;
};
|
false |
|---|
void f()
{
int x;
int y;
return;
};
|
空白行
クラス / 構造体 / 列挙型の定義の周囲
プロパティ名:
[resharper_]cpp_blank_lines_around_class_definition, [resharper_]blank_lines_around_class_definition
可能な値:
整数
例:
値: 0 |
|---|
class C
{
};
class D
{
};
|
値: 1 |
|---|
class C
{
};
class D
{
};
|
値: 2 |
|---|
class C
{
};
class D
{
};
|
関数宣言の周囲
プロパティ名:
[resharper_]cpp_blank_lines_around_function_declaration, [resharper_]blank_lines_around_function_declaration
可能な値:
整数
例:
値: 0 |
|---|
void f();
void g();
|
値: 1 |
|---|
void f();
void g();
|
値: 2 |
|---|
void f();
void g();
|
関数定義の周囲
プロパティ名:
[resharper_]cpp_blank_lines_around_function_definition, [resharper_]blank_lines_around_function_definition
可能な値:
整数
例:
値: 0 |
|---|
void f()
{
f();
f();
}
void g()
{
g();
g();
}
|
値: 1 |
|---|
void f()
{
f();
f();
}
void g()
{
g();
g();
}
|
値: 2 |
|---|
void f()
{
f();
f();
}
void g()
{
g();
g();
}
|
単一行の関数定義の周囲
プロパティ名:
[resharper_]cpp_blank_lines_around_single_line_function_definition, [resharper_]blank_lines_around_single_line_function_definition
可能な値:
整数
例:
値: 0 |
|---|
void f()
{
}
void g()
{
}
|
値: 1 |
|---|
void f()
{
}
void g()
{
}
|
値: 2 |
|---|
void f()
{
}
void g()
{
}
|
名前空間の周囲
プロパティ名:
[resharper_]cpp_blank_lines_around_namespace, [resharper_]blank_lines_around_namespace
可能な値:
整数
例:
値: 0 |
|---|
namespace N1
{
}
namespace N2
{
}
|
値: 1 |
|---|
namespace N1
{
}
namespace N2
{
}
|
値: 2 |
|---|
namespace N1
{
}
namespace N2
{
}
|
その他の定義や宣言の周囲
プロパティ名:
[resharper_]cpp_blank_lines_around_other_declaration, [resharper_]blank_lines_around_other_declaration
可能な値:
整数
例:
値: 0 |
|---|
int x;
int y;
|
値: 1 |
|---|
int x;
int y;
|
値: 2 |
|---|
int x;
int y;
|
アクセス指定子の前
プロパティ名:
[resharper_]cpp_blank_lines_before_access_specifier, [resharper_]blank_lines_before_access_specifier
可能な値:
整数
例:
値: 0 |
|---|
class A
{
public:
int x;
private:
int y;
};
|
値: 1 |
|---|
class A
{
public:
int x;
private:
int y;
};
|
値: 2 |
|---|
class A
{
public:
int x;
private:
int y;
};
|
アクセス指定子の後
プロパティ名:
[resharper_]cpp_blank_lines_after_access_specifier, [resharper_]blank_lines_after_access_specifier
可能な値:
整数
例:
値: 0 |
|---|
class A
{
public:
int x;
private:
int y;
};
|
値: 1 |
|---|
class A
{
public:
int x;
private:
int y;
};
|
値: 2 |
|---|
class A
{
public:
int x;
private:
int y;
};
|