Intellisense -- Collapse shortcut - by Exempo

Status : 


Sign in
to vote
ID 368542 Comments
Status Active Workarounds
Type Suggestion Repros 0
Opened 9/18/2008 3:44:58 PM
Access Restriction Public


1.)It would be nice to implement a collapse outline feature which collapses regions of code with a quick shortcut key. For instance, if you have multiple nested begin end's it would be nice to collapse them to quickly get a visual if you are missing an end.

2.)Also would be nice to have intellisense automtaically add the end in the correct tab placement when a begin was entered. 
Sign in to post a comment.
Posted by notanabrahams on 7/30/2015 at 1:32 AM
It was implemented in SQL Server 2012. See

Below are outlining region shortcuts for eager/lazy ones:

Collapses all outlining regions to show just the outermost groups in the hierarchy CTRL+M, CTRL+A
Collapses the currently selected outlining region CTRL+M, CTRL+S
Expands all outlining regions on the page CTRL+M, CTRL+X
Expands the currently selected outlining region CTRL+M, CTRL+E
Collapses existing outlining regions CTRL+M, CTRL+O
Posted by Mitchster on 12/4/2014 at 7:10 AM
Yes, this should be considered 'finishing the job'.
Small addendum: Please make the effort to really think through the menu items in order to make them more user friendly.
This feature, in VS, is really cool but the menu items in VS for the features are named very obtusely.
Posted by Simple_One on 1/6/2014 at 3:56 PM
Is there a 'collapse all' option available for the outlined code blocks somewhere?
Posted by Mike [MSFT] on 3/22/2013 at 9:06 AM
Thanks for your feedback. The outline implementation is available in SSMS for SQL Server 2012.

Posted by Rizwaan Adil on 7/20/2012 at 1:31 PM
Hope this has been implemented in SQL Server 2012
Posted by Wocketfast2 on 5/17/2012 at 4:34 AM
This feature would be most welcome. Using the work around for now.
Posted by Krokonoser on 9/1/2010 at 1:08 AM
Still not looked at?

Visual Studio had this for years. VS and SQSMS share a lot of common functionality.
Posted by Microsoft on 9/19/2008 at 11:02 AM
Hello Exempo,

Thank you for your suggestions. Intellisense is a new feature in SQL Server SSMS 2008 and it is expected to be enhanced over multiple releases. There were multiple features/enhancements that were considered for the first release but not all could make it due to timing constraints. Your suggestions on outline shortcuts and smart identing are indeed useful to the end user and will be considered for a future release of SQL Server. Please watch out this space for updates on this bug.