question

sqlLearner 1 avatar image
sqlLearner 1 asked

Code Folding Collapse All

Is anyone aware of how to "Collapse All" the code in SSMS 2014? From what I've read collapse all is not a feature in code folding. I saw a CTRL+M shortcut that I thought would do it but doesn't seem to work.
tsqlssmsmana
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
ArnoKwetters avatar image
ArnoKwetters answered
On msdn you can find all the shortcuts https://msdn.microsoft.com/en-us/library/ms174205.aspx The keyboard stroke you are looking for isn't there. But you can also use your mouse. If you have more then one tab, go to one of the tabs. Standing on the header of the tab press the right mouse button. Choose 'Close All But This', then all the others tabs will close. After that close the actual tab by CTRL-F4 Hope this will help.
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sqlLearner 1 avatar image sqlLearner 1 commented ·
Thanks for the answer but I am referring to code folding not closing the query windows. I want to fold all the code at once for easier reading. Sorry if I wasn't clear.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.