Reputation: 1938
I need sometimes to jump at the end of a method with Android Studio, for various purposes (see what returns, various operations, etc...)...
It exists a command/shortcut to do that?
Upvotes: 3
Views: 600
Reputation: 643
To quickly navigate to the end of a method in Android Studio, please use this option:
Locate the "Structure" sidebar on the right-hand side of the Android Studio window.
If it's not visible, you can enable it by going to "View" -> "Tool Windows" -> "Structure" (or by pressing Alt + 7).
In the "Structure" sidebar, click on the name of the method you want to navigate to. This action will expand to show the method's details.
Look for the closing brace (}) at the end of the method. Clicking on it will take you directly to the end of the method.
Upvotes: 1
Reputation: 61
You can use the shortcut CONTROL + ]
on windows or Option + Command + ]
in Mac. See reference.
Hope this helps :)
Upvotes: 3
Reputation: 1938
I haven't find a direct command, but pressing Alt + Down
takes you to the next method. From there is not difficult to reach the end of the previous method.
Upvotes: 6