How to automatically indent source code?

后端 未结 7 1511
抹茶落季
抹茶落季 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:30

    It may be worth noting that auto-indent does not work if there are syntax errors in the document. Get rid of the red squigglies, and THEN try CTRL+K, CTRL+D, whatever...

提交回复
热议问题