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