Paul ten Brink
Paul ten Brink

Reputation: 61

ReSharper still formatting my code

Hopefully someone can help me, because I am getting desperate.

I do not want ReSharper (or for that matter Visual Studio) to format my code, because I tend to align parts of my code to make it more readable, thus easier to understand and to maintain.

Because of this I have switched off all relevant formatting options in ReSharper (and Visual Studio). But still every once in a while my entire code is reformatted and all alignments are lost.

Has anybody encountered this as well? If so, do you happen to know what is causing this? Even better: how to prevent this?

Google was not my friend in this...

Thanks a lot, Paul

Upvotes: 0

Views: 53

Answers (1)

Brett Veenstra
Brett Veenstra

Reputation: 48454

Turn off settings in Resharper Options

Environment > Editor > Editor Behavior

  • Auto-format on semicolon
  • Auto-format on closing brace
  • Auto-insert ...

Code Editing > Context Actions

  • Format code

Upvotes: 1

Related Questions