How to go to last edit location in Android Studio
Asked Answered
R

9

19

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

Roana answered 28/6, 2016 at 12:34 Comment(3)
Are you looking to undo the changes as you navigate through the edits? On Windows, ctrl-z is the usual keyboard short cut for that.Shechem
I think there is only the undo function in Android Studio, but it is not for navigating.Piassava
@MichaelVincent not undoRoana
S
1

Goto Navigate menu and find Last Edit Location option.

Shortcut: ctrl + Q

DONE

Sauder answered 28/6, 2016 at 13:15 Comment(0)
E
15

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

Everetteeverglade answered 28/6, 2016 at 12:40 Comment(4)
thanks but isn't there any simple and QUICK solution i.e. at least a short cutRoana
You can set whatever shortcut you would like here. As you can see on the screenshot, mine is Ctrl + Q. You can just right click on it to change the shortcut.Everetteeverglade
Its default values i Ctrl+Shift+BackspaceOutbuilding
Made my day! Thanks. Not only was I able to find this keymap shortcut, but now I know a quick way to find other shortcuts and be 100% certain too. If I would have downloaded the list of keymaps, they would not have been specific to my setup and may not have worked. Much appreciated. Thanks again.Undeniable
R
7

I got the short cut

Mac: Cmd+Shift+Backspace

Windows/Linux: Ctrl-Shift-Backspace

It's working for me

Roana answered 28/6, 2016 at 12:48 Comment(0)
R
6

To go to last edit location/s in android studio, Press :

Alt + <--

Update

To list the files you navigated to previously, press :

Ctrl + e

To list only files that have been edited, press :

Ctrl + Shift + e

What you should have in Navigate under File->Settings->Keymap : enter image description here

Renny answered 28/6, 2016 at 12:39 Comment(1)
thanks but this don't work, Alt & Back is like UNDO, i want only to navigate, not undo my changesRoana
I
3

Go to VCS in menu then Local History then Show History. You will find all your Changes made in Project from beginning or After project Importing. I think you are Searching for this.

Local History Path

Inofficious answered 28/6, 2016 at 12:44 Comment(0)
M
3

For mac users to go to last edited location use: + + /

Milklivered answered 9/1, 2018 at 6:56 Comment(0)
S
1

Goto Navigate menu and find Last Edit Location option.

Shortcut: ctrl + Q

DONE

Sauder answered 28/6, 2016 at 13:15 Comment(0)
G
1
Shift + cmd + Delete
  • I'm using android studio 3.2.3
  • MacOS Mojave 10.14
Goldie answered 21/3, 2019 at 15:57 Comment(0)
E
0

Use Command + ALT if you are using external keyboard.

Eichelberger answered 8/2, 2018 at 10:32 Comment(1)
Windows for MACEichelberger
K
0

For mac users to go to last edited location use: ⌘ + ⌥ + ← /

Kalina answered 4/1, 2024 at 3:16 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.