Reputation: 289
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
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
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