有没有一种方法可以配置ReSharper来更改以下内容:
private bool _learnTimerDetailsEditable;
public bool LearnTimerDetailsEditable { get => _learnTimerDetailsEditable; set => SetProperty(ref _learnTimerDetailsEditable, value); }
使我的代码看起来像这样:
private bool _learnTimerDetailsEditable;
public bool LearnTimerDetailsEditable
{
get => _learnTimerDetailsEditable;
set => SetProperty(ref _learnTimerDetailsEditable, value);
}
自动格式化吗?
在“ Resharper选项”上,转到:
Code Editing
/ C#
/ Formatting Style
/ Line Breaks and Wrapping
。
找到该Arrangement of declaration blocks
部分。
取消选中Place abstract/auto property/indexer/event declaration of single line
。如果这对您不起作用,请尝试下一个选项:Place simple property/indexer/event declaration on single line
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句