visual studio 2019 reformat code shortcut code example Example: visual studio format code shortcut //Ctrl+K, Ctrl+D //for c# scheme: Ctrl+E, Ctrl+D