Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to go to last edit location in Android Studio

How to go to last edit location/s in android studio?

Clicking the back arrow in the toolbar makes you travel within your navigation history.

But I want to travel within my edition history i.e. navigate through the last change/s I made in code.

Eclipse have a back arrow with star on it for this.

this arrow is present in Eclipse for the same

like image 822
Shirish Herwade Avatar asked Jun 28 '16 12:06

Shirish Herwade


People also ask

How to get previous changes in Android Studio?

To use Local history on any folder or file press right click, then Local history > Show history. Here you see your local changes on the selected files or folders. On a previous entry, you can hit right click and Revert to revert to that state.

How to Set keymap in Android Studio?

To open the keymap settings, choose File > Settings (on Mac, Android Studio > Preferences) and navigate to the Keymap pane. Figure 1. The Android Studio keymap settings window. Keymaps dropdown: Select the desired keymap from this menu to switch between preset keymaps.

How do I comment in Android Studio?

To comment/uncomment one line, use: Ctrl + /. To comment/uncomment a block, use: Ctrl + Shift + /.

How to open settings in Android Studio mac?

Click File > Settings (on macOS, Android Studio > Preferences) to open the Settings dialog.


2 Answers

Go to File -> Settings... -> Keymap.

In the search box type "last edit location".

Your default shortcut for Last Edit Location should show up (mine is Ctrl + Q on the screenshot below).

You can also change it by double (or right) clicking on it.

enter image description here

like image 116
earthw0rmjim Avatar answered Sep 16 '22 14:09

earthw0rmjim


I got the short cut

Mac: Cmd+Shift+Backspace

Windows/Linux: Ctrl-Shift-Backspace

It's working for me

like image 43
Shirish Herwade Avatar answered Sep 17 '22 14:09

Shirish Herwade