Visual Studio Expand/Collapse keyboard shortcuts [duplicate]
问题 This question already has answers here : Command to collapse all sections of code? (20 answers) Closed 3 years ago . In Visual Studio, if I have a code file open, I can press CTRL + M or CTRL + M + O to collapse all code blocks, regions, namespaces, etc. How to I do the opposite and expand everything? I have Googled this, but cannot seem to find a shortcut that works! 回答1: Collapse to definitions CTRL + M , O Expand all outlining CTRL + M , X Expand or collapse everything CTRL + M , L This