I'm working on some legacy code that has a class that is 10,000+ lines of code and has 100s of methods. Is there a shortcut for any JetBrains IDE (since the shortcut would likely be shared across all of them) to collapse all the methods / functions so that only the method signatures are shown?
Something like this:
public String myMethod(String arg1, int arg2){...}
public String mySecondMethod(String arg1, int arg2){...}
Ctrl-F12
will open a navigator to hop between methods, etc. (You can narrow down the list of methods by typing in this Structure View as well.) The Structure Pane (Alt-7
) adds more options. This might be a more effective way of exploring files with large numbers of methods, so I leave the suggestion here for future googlers. – Jerrybuilt