Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spaces around multiplication and division operators are deleted by IDE, how to keep them?

I'm using Visual Studio with ReSharper, and whenever I write something like

a * b

it gets changed to

a*b

Is it a Visual Studio setting or a ReSharper setting? What exactly should I change?

like image 615
Ilya Kogan Avatar asked Dec 25 '12 11:12

Ilya Kogan


1 Answers

Go to ReSharper -> Options -> Code Editing -> C# -> Formatting Style -> Spaces.

In the "Around Operators" section, check the box next to "Multiplicative operators (*,/,%)".

like image 153
Ilya Kogan Avatar answered Nov 10 '22 00:11

Ilya Kogan