Visual Studio Format entire file?

RCIX picture RCIX · Sep 16, 2009 · Viewed 61k times · Source

Is there a way to issue a key command to properly format an entire file in VS2008 with CodeRush Express?

Answer

Vadim picture Vadim · Sep 16, 2009

Use Ctrl+K+Ctrl+D to format document keystroke

Use Ctrl+K+Ctrl+F to format selection keystroke

It's also possible to set your own keystrokes by opening Options... dialog (select Tools->Options from the menu). In Options dialog select Environment->Keyboard form the tree and set your own shortcuts for Edit.FormatDocument.