Wrap ternary or complex assignment expressions in parens
Is there a setting that would allow me to keep the parens in assignment expressions involving a ternary operator or anything complex? I find it far clearer to do so in cases like this:
Snippet
property.Program = (insured.IsExchange ? "AX" : "Pool");
Snippet
property.ShortNameIsNewInsured = (insured.DateOfFirstCoverage == property.PolicyStartDate);
Presently, Reformat Code is removing the parenthesis in the above two examples. Running R# 2018.1 and the latest version of VS 2017.
Please sign in to leave a comment.