Auto format code shortcut in Visual Studio?

QuestionsCategory: C#Auto format code shortcut in Visual Studio?
Vijay asked 4 years ago

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

 

Disclosure of Material Connection: Some of the links in the post above are “affiliate links.” This means if you click on the link and purchase the item, we will receive an affiliate commission. Regardless, we only recommend products or services we use personally and believe will add value to our readers.

1 Answers
Best Answer
Shehryar Khan Staff answered 4 years 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)

 

Disclosure of Material Connection: Some of the links in the post above are “affiliate links.” This means if you click on the link and purchase the item, we will receive an affiliate commission. Regardless, we only recommend products or services we use personally and believe will add value to our readers.