Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2019 Auto-format not working as of 16.5.4

I just upgraded VS2019 on Windows to version 16.5.4, and the text editor auto-formatting is no longer working.

For all previous version of Visual Studio (at least when editing .vb files), when you hit enter at the end of a line, that line would get auto-formatted.

For example, let's say you had this line of code:

Dim Test as string = ""

if you hit enter at the end of that line, Visual Studio would change string to String automatically. That functionality is no longer working.

Has anyone else seen this? Does anyone know how to fix it? Is it a bug with VS?

like image 459
Danny Ackerman Avatar asked Oct 16 '25 10:10

Danny Ackerman


1 Answers

Go to Tools...Options...Text Editor...Basic...Advanced...Editor Help -> ensure Pretty Listing is enabled.

Thank you to @Martheen

like image 58
Danny Ackerman Avatar answered Oct 18 '25 00:10

Danny Ackerman