Is there any way to prevent Resharper from reformatting comments? I'd like to put my comments behind the code it self aligned using tabs. Like:
private static IEnumerable<string> GetOperands(string grammar)
=> grammar.Replace(GetOpcode(grammar), "") // remove operand from grammar
.Split(new[] {','}, StringSplitOptions.RemoveEmptyEntries) // operands are split with a ,
.Select(s => s.Trim()); // remove any whitespace
However when I do a code cleanup Resharper formats it as:
private static IEnumerable<string> GetOperands(string grammar)
=> grammar.Replace(GetOpcode(grammar), "") // remove operand from grammar
.Split(new[] {','}, StringSplitOptions.RemoveEmptyEntries) // operands are split with a ,
.Select(s => s.Trim()); // remove any whitespace
Which (in my opinion) does not increase the readability.