Is there a way to issue a key command to properly format an entire file in VS2008 with CodeRush Express?
Visual Studio Format entire file?
68.3k Views Asked by RCIX At
8
There are 8 best solutions below
0

Just select all content of page by Ctrl + A then click Ctrl + K and Ctrl + D. The whole page tag format.
For example see this link: Format the content
0

If Ctrl+E+Ctrl+D or Ctrl+K+Ctrl+D or Ctrl+K+Ctrl+F doesn't work for you, try to set below settings:
Tools->Options -> Text Editor ->C# ->Tabs
,
make sure `Keep tabs is selected.
Then, go back to your text editor, re-try formatting.
I was really annoyed before, and steps above works for me. hope it works for you guys..
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.