DEV Community

gopkumr
gopkumr

Posted on • Originally published at beneathabstraction.com on

Switch off auto formatting in Visual Studio 2019

If you have landed here searching how to switch off auto formatting of code files in Visual Studio, you are either a code purist who does not like the formatting the IDE is performing or you are like me editing a large auto-generated class file (due to unfortunate situations) and Visual studio hangs or crashes on you every time you do a small change. The good news is there is an option in the IDE to switch feature off.

Tools > Options > Basic > Advanced > Editor Help Section > Pretty listing (reformatting)of code

Alt Text

Top comments (1)

Collapse
 
bmusical profile image
Harvey Myers IV

Well, I just switch off auto-formatting, hopefully that will help some. I did Edit, Advanced, Format Document and the problem with wild formatting is still there. Seems to me VS used to do a lot better job than it does now.