I couldn't find a way to collapse/expand regions and sections from Visual Studio for Mac.
If someone could share how to do that, it would be very useful.
Windows and Linux: Ctrl + K Ctrl + 0. Mac: ⌘ + K ⌘ + 0.
(Ctrl+M, Ctrl+U) - Removes the outlining information for the currently selected user-defined region. Not available in Visual Basic. (Ctrl+M, Ctrl+O) - Collapses the members of all types. (C++) Collapses a region in the function containing the insertion point.
Ctrl + M , Ctrl + L toggles all foldables recursively, from the top namespace down to the inner methods and comments.
How to Collapse All Source Code in VS Code? To fold all top-level and child elements of your code: Enter the command >fold and hit Enter.
You need to go to Preferences >> Text Editor >> General
as on the image below and you will see Code Folding area.
You can check whatever you need and you will see code folding blocks in your code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With