Learn more about Toad for SQL Server
at Quest.com

Find solutions and downloads at the
Toad for SQL Server Support Portal

< To bookmark a page, right-click the Page Title and select Add to Favorites / Bookmark This Page

Toad for SQL Server 5.7

You are here: Edit SQL > Organize and Navigate Code > Set Code Regions

Set Code Regions

You can define regions in your code that can be expanded or collapsed for easier navigation.

To add a code region

  1. Enter the following on the line above the beginning of the statement:

    -- region region_name

  2. Enter the following on the line below the end of the statement:

    -- endregion

Tip: Press CTRL+J to collapse all code regions and CTRL+M to expand all code regions.

 

Related Topics

About Editing SQL  

Insert Code Snippets