Visual Studio Format entire file?

前端 未结 8 1766
小鲜肉
小鲜肉 2021-01-31 08:58

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

8条回答
  •  天涯浪人
    2021-01-31 09:23

    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.

提交回复
热议问题