Is there a format code shortcut for Visual Studio?
Visual Studio with C# key bindings To answer the specific question, in C# you are likely to be using the C# keyboard mapping scheme, which will use these hotkeys by default: Ctrl+E, Ctrl+D to format the entire document. Ctrl+E, Ctrl+F to format the selection. You can change these in menu Tools → Options → Environment … Read more