intellij-ideaidephpstormkeyboard-shortcuts

JetBrains / IntelliJ keyboard shortcut to collapse all methods


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){...}

Solution

  • You may take a look at IntelliJ code folding shortcuts.