Lore
Lore

Reputation: 1938

How to jump to the end of method with Android Studio

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

Answers (3)

Shogun Nassar
Shogun Nassar

Reputation: 643

To quickly navigate to the end of a method in Android Studio, please use this option:

  1. Locate the "Structure" sidebar on the right-hand side of the Android Studio window.

  2. If it's not visible, you can enable it by going to "View" -> "Tool Windows" -> "Structure" (or by pressing Alt + 7).

  3. 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.

  4. 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

Deyvison Cruz
Deyvison Cruz

Reputation: 61

You can use the shortcut CONTROL + ] on windows or Option + Command + ] in Mac. See reference.

Hope this helps :)

Upvotes: 3

Lore
Lore

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

Related Questions