![SQL SERVER - How to Format and Refactor Your SQL Code Directly in SSMS and Visual Studio - SQL Authority with Pinal Dave SQL SERVER - How to Format and Refactor Your SQL Code Directly in SSMS and Visual Studio - SQL Authority with Pinal Dave](https://blog.sqlauthority.com/i/b/refactorapex/image001.png)
SQL SERVER - How to Format and Refactor Your SQL Code Directly in SSMS and Visual Studio - SQL Authority with Pinal Dave
![Using templates in SQL Server Management Studio - SQL Server Management Studio (SSMS) | Microsoft Docs Using templates in SQL Server Management Studio - SQL Server Management Studio (SSMS) | Microsoft Docs](https://docs.microsoft.com/en-us/sql/ssms/template/media/templates-ssms/opentemplate.png?view=sql-server-ver15)
Using templates in SQL Server Management Studio - SQL Server Management Studio (SSMS) | Microsoft Docs
![Format/Re-Format SQL Document or selected part of code: SSMSBoost Add-in for SQL Server Management Studio Format/Re-Format SQL Document or selected part of code: SSMSBoost Add-in for SQL Server Management Studio](https://www.ssmsboost.com/content/images/feature/ssms-add-in-settings-formatting.png)
Format/Re-Format SQL Document or selected part of code: SSMSBoost Add-in for SQL Server Management Studio
![SSMSBoost add-in - productivity tools pack for Sql Server Management Studio 2018 / 2017 / 2016 / 2014 / 2012 / 2008 SSMSBoost add-in - productivity tools pack for Sql Server Management Studio 2018 / 2017 / 2016 / 2014 / 2012 / 2008](https://www.ssmsboost.com/content/images/feature/ssms-add-in-run-as-database-query.png)