Alt+Ctrl+UP , Tab , Tab , Enter
This sequence will take you through Project Selector> Scope Selection> Function Selection> Current Function.
Ctrl+M , Ctrl+M
This sequence will switch between collapse / expand the current block.
Place the cursor on any line that is immediately enclosed in a function. Collapse. Place the cursor at the end of the collapsed function, i.e. after {... } . Expand the function to get its last bracket.
Remarks:
If you are having difficulty finding a line directly covered by a function (for example, when a function has many nested blocks), you can always go to the beginning to collapse the function.
source share