如何自动缩进源代码? [英] How to automatically indent source code?
本文介绍了如何自动缩进源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Visual Studio 2010中自动缩进源代码?
How can I automatically indent source code in Visual Studio 2010?
我使用了 Ctrl + K , Ctrl + F ,但这是行不通的;还有其他方法/插件吗?
I have used Ctrl + K, Ctrl + F, but it does not work; is there any other way/plugin to do this?
推荐答案
Ctrl + E , D -格式化整个文档
Ctrl + K , Ctrl + F -格式选择
Ctrl+E, D - Format whole doc
Ctrl+K, Ctrl+F - Format selection
还可通过 Edit | Advanced 在菜单中使用.
Also available in the menu via Edit|Advanced.
托马斯
编辑-
Ctrl + K , Ctrl + D -在VS 2010中格式化整个文档
Edit-
Ctrl+K, Ctrl+D - Format whole doc in VS 2010
这篇关于如何自动缩进源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文