SQL
Also consider some online SQL formatting tools:
- SQLInform's online SQL formatter - requires Java in your browser.
- SQLRefactor from Red Gate - ~$300
- Instant SQL Formatter online at dpriver.com Apparently they have a SQL Management Studio plugin for $50
- SQL Format at apspot.com
Visual Studio
在菜单Edit->Advanced中有两个相关的菜单项:
格式化整个文档:Ctrl+E, D
格式化选中文本:Ctrl+E, F