There\'s a number of keyboard shortcuts and menu commands to automatically expand or collapse all foldables in the current document. Ctrl+M, Ctrl
tick the Checkmark in Settings -> TextEditor -> C# -> Advanced -> Collapse #regions when collapsing definitions.
then right click in the editor > outlining > collapse to defenitions