kent510
kent510

Reputation: 289

Shortcut Key to Return to Usage position

Using Android Studio on a Windows platform, when my cursor is on a class or method, I could use Ctrl+B to go to the declaration of a class or method to view the definition.

What is the shortcut key that will return me to the point of origin (where the class/method was referenced)?

Upvotes: 5

Views: 1735

Answers (3)

Ace Siena
Ace Siena

Reputation: 239

In Eclipse there is a shortcut for this (Alt+Left). I haven't found a shortcut for Android Studio that does the same, so I use Ctrl+Shift+Backspace instead. It will return the cursor/focus to the code where I last edited something. Before I use Ctrl+B on a method or class I press space then backspace somewhere near the code, so the cursor can return there when I press Ctrl+Shift+Backspace after Ctrl+B.

Upvotes: 0

sinedk
sinedk

Reputation: 1

I didn't find either so I use CTRL+SHIFT+I to see the definition. It's not the best view but better then spend time trying to figure out where you were in the code.

Upvotes: 0

bloodopal
bloodopal

Reputation: 154

On Windows, to Navigate back/forward, use

Ctrl+Alt+/

IntelliJ Default keymap

Upvotes: 3

Related Questions