如果我有
class A
{
int a;
int b;
}
resharper是否有办法在"代码清理" 操作中将此代码重新格式化为以下内容?
class A
{
int a, b;
}
答案 0 :(得分:2)
在ReSharper中无法做到这一点,因为这被认为是一种糟糕的风格。请参阅Why do you not declare several variables of the same type on the same line?和Declaring Multiple Variables in JavaScript