Visual Studio Toolkit Posted on 2021-04-22 Edited on 2026-05-03 In Tech , Toolkit Hotkeys Collapse all scetions of code CTRL + M + O will collapse all. CTRL + M + L will expand all. (in VS 2013 - Toggle All outlining) CTRL + M + P will expand all and disable outlining. CTRL + M + M will collapse/expand the current section. CTRL + M + A will collapse all even in Html files. Ref Stackoverflow: Command to collapse all sections of code?