visual studio c# auto format code example
Example: how to auto format c# code in visual studio
format a selection: Ctrl+K, Ctrl+F
format a document: Ctrl+K, Ctrl+D
format a selection: Ctrl+K, Ctrl+F
format a document: Ctrl+K, Ctrl+D