SSMS 没有这个功能,可以安装一下SQL Prompt 来格式化TSQL代码,可是用在线的TSQL代码格式化工具。
http://www.dpriver.com/pp/sqlformat.htm
https://sqlformat.org/
https://www.freeformatter.com/sql-formatter.html
专注于.NET ERP/CRM开发框架,C/S架构,SQL Server + ORM(LLBL Gen Pro) + Infragistics WinForms