Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to move to previous caret position in Android Studio

How can one move to previous caret position(s) in android studio? It was possible in Eclipse.

like image 447
AVEbrahimi Avatar asked Mar 15 '15 07:03

AVEbrahimi


People also ask

How to go Back to previous code in Android Studio?

To navigate back and forth faster, hit CMD + ALT + ARROW_LEFT/ARROW_RIGHT. It will bring you to your last cursor position in your project.

How do I copy a line down in Android Studio?

Copy line: To copy a whole line place your cursor anywhere on that line and press Ctrl+C. This will automatically select the whole line and copy it to the clipboard.


2 Answers

Use Ctrl + Alt + Left and Ctrl + Alt + Right

For Mac, use Command + Option + Left and Command + Option + Right

If these don't work for you, it is possible that these keys are assigned for some of the functions of your OS/video drivers, you can either disable the shortcuts that are using these keys from operating system settings/video driver settings or change shortcuts from Android Studio itself by going to:

File > Settings > Keymap > Main menu > Navigate > Back/Forward 

Move to previous caret position Android Studio

Mac users can find this dialog by going to Android Studio's: App Menu -> Preferences

like image 89
Yogesh Umesh Vaity Avatar answered Sep 28 '22 04:09

Yogesh Umesh Vaity


It's Alt + Ctrl + Right/Left arrow and mouse buttons 4 and 5 (if your mouse has those). You can change these shortcuts under:

File > Settings > Keymap > Main menu > Navigate > Back/Forward.

like image 33
Darek Kay Avatar answered Sep 28 '22 03:09

Darek Kay