Code regions are not natively supported in SQL Server Management Studio.
In order to organize your code, you have a few options:
- Refactor to introduce stored procedure and user defined functions
- Use the “code region hack” defined in this post
- Install the SSMS Tools Pack which provides advanced format features
Good luck.