Regions in SQL Server Management Studio !

SSMSBoost adds the possibility to use common regions syntax
--#region [Name]
--#endregion
in SQL Editor. Regions will be recognized and processed by our add-in and expand/collapse symbols will be added near region head.
Regions functionality is available through SSMSBoost toolbar->Regions
Following commands are available
  • Create region creates unnamed region. If you run it when some part of code is selected - it will be wrapped into newly created region.
  • Create named region creates region, asking for name. If you run it when some part of code is selected - it will be wrapped into newly created region.
    SSMSBoost regions in SSMS
  • Reparse/Refresh regions forces re-processing of current document. All regions will be newly created. This can be necessary, if you are doing massive changes to the document. Regions are parsed automatically when script is being opened in editor.
Make sure you check SSMSBoost Settings->Regions for fine-tuning options. For example, you can customize region start and end tokens.