How to automatically indent source code?

后端 未结 7 1512
抹茶落季
抹茶落季 2020-12-07 11:56

How can I automatically indent source code in Visual Studio 2010?

I have used Ctrl + K, Ctrl + F, but it does not work; i

7条回答
  •  攒了一身酷
    2020-12-07 12:42

    Ctrl+E, D - Format whole doc
    Ctrl+K, Ctrl+F - Format selection

    Also available in the menu via Edit|Advanced.

    Thomas

    Edit-
    Ctrl+K, Ctrl+D - Format whole doc in VS 2010

提交回复
热议问题