Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ReSharper 中是否有设置自动格式化单语句 IF 语句,大括号块位于一行?这是在 ReSharper 6.1 上。
//What I want if(tired) { Sleep(); } else { Party(); } //what I get if(tired) { Sleep(); } else { Party(); }
即使是这样,我个人还是建议不要使用它,因为它不可读。
我个人可以接受
if(tired) Sleep(); else Party()
但不是您正在寻找的东西。
祝你好运