Auto format code shortcut in Visual Studio?

QuestionsCategory: C#Auto format code shortcut in Visual Studio?
Vijay asked 11 months ago

I know Visual Studio can auto format to make my code indented properly, but I cannot find shortcut.

1 Answers
Best Answer
Shehryar Khan Staff answered 11 months ago
  • Format Document (Ctrl+K, Ctrl+D) so type Ctrl+K, and then Ctrl+D as it is a sequence
  • Format Selection (Ctrl+K, Ctrl+F)