在Visual Studio中,只要选中一段代码,按快捷键"Ctrl+K","然后再Ctrl+F",即可将凌乱的代码重新格式化,非常方便。 转载于:https://www.cnblogs.com/c21/archive/2009/05/24/1488069.html