Hello, I am a new user of resharper, and I'm trying to customize it to my code style. One thing I'm having trouble with is tenary operators. For simple ternary operators I'd like to have the following formatting:
condition? expr1 : expr2;
or if that is too long, wrap as
Maybe I just didn't figure out what options to select, but when I apply code formatting, Resharper always does
Also sometimes I chain ternary operators like so:
condition ? expression 1 :
condition2 ? expression 2 :
condition3 ? expression 3 :
Again resharper doesn't do what I want:
? expression 2
: condition3 (etc.)
Another question I have is the use of the var keyword. I've decided to disable the rule because sometimes I choose not use var. My rule is actually pretty simple: I use var anywhere I can, except for built-in numerical types (int, float, byte, etc.) Is there a way to create such a rule in Resharper?
Also, is there a way to apply code cleanup on an entire project or solution, rather than file by file?
That'll be it for now :p, thanks!