visual studio format entire solution code example
Example: vs2019 format all
To format a selection: Ctrl+K, Ctrl+F
To format a document: Ctrl+K, Ctrl+D
To format a selection: Ctrl+K, Ctrl+F
To format a document: Ctrl+K, Ctrl+D