Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 Keep Turning Off the Pretty listing (reformatting) of code Option for VB

For some strange reasons it un-checks the Pretty listing (reformatting) of code option from time to time.

I have to keep turning it back on to keep my code "pretty" :-)

This has never happened on VS2013.

Just wondering does anyone have the same issue?

like image 298
Robert Avatar asked Sep 18 '15 03:09

Robert


1 Answers

I've encountered the same problem (both with and without ReSharper installed, so that doesn't seem to be the problem). I "sent a frown" to Microsoft about this some time ago but have heard nothing back.

While this isn't a "fix", I have come across a handy workaround. Since "pretty listing" and the "Format Document" command give the same result, all you need to do is run that command.

I found this extension which automatically runs the Format Document command when you save. Now, even if "pretty listing" does get mysteriously turned off, I still end up with my code being formatted automatically.

like image 109
reduckted Avatar answered Oct 13 '22 14:10

reduckted