![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
![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-status-bar-connection-color-select.png)
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 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)
SSMSBoost add-in - productivity tools pack for Sql Server Management Studio 2018 / 2017 / 2016 / 2014 / 2012 / 2008
![Do you give use Vim for SQL. It took me a while to setup this. sqls - lang server (auto complete), dadbodUI (view table, execute and save query), prettier-sql (format code on Do you give use Vim for SQL. It took me a while to setup this. sqls - lang server (auto complete), dadbodUI (view table, execute and save query), prettier-sql (format code on](https://i.redd.it/wmr0q29bt2881.png)
Do you give use Vim for SQL. It took me a while to setup this. sqls - lang server (auto complete), dadbodUI (view table, execute and save query), prettier-sql (format code on
![ssms 18 - Poor mans T-SQL formatting add-in "Format T-SQL Code" option disabled in SQL Server Management Studio v18.5 - Stack Overflow ssms 18 - Poor mans T-SQL formatting add-in "Format T-SQL Code" option disabled in SQL Server Management Studio v18.5 - Stack Overflow](https://i.stack.imgur.com/Qf7RP.png)