Reputation: 27295
I've found a list of Visual Studio .editorconfig settings here. But I'm not sure if it is complete or not. It contains a list of five spacing settings, none of which seem to be relevant for the setting I want.
In particular, I want to control spacing around logical operators, such as:
if (x!=0)
if (x != 0)
EDIT: I am specifically asking about .editorconfig. The key is that it is a setting inside the solution, not in Visual Studio settings.
Upvotes: 1
Views: 2426
Reputation: 2682
Looking at the .editorconfig reference it looks like what you need would be the line below:
csharp_space_around_binary_operators = before_and_after
It mentions there that this flag is "currently thwarted by this bug".
Upvotes: 3