Cleanup Code converting all C# expressions to method bodies
Cleanup Code seems to be converting all C# expression-bodied methods and ctors to normal braces-style method bodies. Expression-bodied getter properties don't appear to be affected. I can't find any options relating to any of this, but surely there must be, right? How can I stop this from happening?
Running R# 2018.1 and the latest patch of VS 2017.
Please sign in to leave a comment.
I just logged in to ask about this as well
Hello everyone!
This option can be changed in
ReSharper | Options | Code Editing | C# | Syntax Style | Code body | Methods and operators. If you'd like to apply such code style to void methods, you also need to uncheck theApply style heuristicscheckbox. Please let me know if you have any questions. Thank you!