Collapse, Expends code shortcut in visual studio? CTRL + M + O : To Collapse all in-line code Ctrl + M + P : To Expends all collapsed code Ctrl + M + L : To Collapse all collapsed document code and disable outlining. CTRL + M + M : Toggle Collapse/Expend current cursor function line code. Email ThisBlogThis!Share to XShare to Facebook