It seems that such feature was used in the past. Currently it is available in VBA (in Excel, for example). There is a “Default to Full Module View” option.
According to https://social.msdn.microsoft.com/Forums/en-US/de49c6c7-9f58-4a0c-b65f-d47ca125d5c1, try selecting “Collapse to Definitions” from menu, EDIT, Outlining (or use the corresponding shortcut key). Then expand the required function by clicking [+] at left side, or select the function from the dropdown list.