Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I navigate to the start or end of a file in Android Studio?

In TextMate, for example, I use command + uparrow for the start of the file and command + downarrow for the end of the file.

Android Studio doesn't do this. How do I do the same thing in Android Studio?

Thanks.

like image 709
Joshua Pinter Avatar asked Oct 11 '13 08:10

Joshua Pinter


People also ask

How do you get to the end of line?

Generally use the Home key to move to the beginning of input field and End key to move to the end. You can also use Ctrl + arrow key to move direction one word at a time. For example Ctrl + Left Arrow to move to previous word.

Where is the file in Android Studio?

Android Studio stores the projects by default in the home folder of the user under AndroidStudioProjects. The main directory contains configuration files for Android Studio and the Gradle build files. The application relevant files are contained in the app folder.


2 Answers

Cant you just use cmd (or ctrl) + Home / End

On a Mac slim keyboard (without dedicated Home or End keys), Fn + Left/Right arrow is the equivalent.

So Cmd + Fn + Left/Right arrow should go to Start/End of file.

like image 131
Matt Whetton Avatar answered Oct 12 '22 16:10

Matt Whetton


Navigate by braces, with a couple iterations you will get to start and end of file:

To navigate to start use:

command + option + [ 

and for end use:

command + option + ] 

Once you are at the outer-most brace, you will not need multiple keystrokes.

This is especially useful for more than one closure in your java file.

Navigating to Braces

like image 30
John Masiello Avatar answered Oct 12 '22 18:10

John Masiello