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