Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to navigate to error lines in Android Studio by shortcut?

How can I navigate to the error lines in a java file?

Isn't there any better way than scrolling to them?

like image 797
Amir Ziarati Avatar asked Oct 03 '16 07:10

Amir Ziarati


People also ask

How do I view errors on Android?

Using F2. In addition to what the other answers say, you can find errors by pressing F2 or Shift + F2 . This is useful when you can't see the where the red indicator is on the side bar.

How do I switch tabs in Android Studio?

Move between Tabs(Alt+left/right arrow keys): If you have tabs activated in Android Studio then you can use Alt+left/right arrow keys to move between them. This shortcut works for any window that have tabs in Android Studio.

Which is keyboard short cut for auto format code in Android Studio?

Install the Dart plugin (see Editor setup) to get automatic formatting of code in Android Studio and IntelliJ. To automatically format your code in the current source code window, use Cmd+Alt+L (on Mac) or Ctrl+Alt+L (on Windows and Linux).


Video Answer


2 Answers

F2 is shortcut key to jump on next error line in java file. SHIFT+F2 shortcut to navigate between errors in your document. if there is no error you will be navigated to the warnings.

like image 40
The EasyLearn Academy Avatar answered Sep 28 '22 23:09

The EasyLearn Academy


I searched for it and found the answer.

1- you can use F2 and SHIFT+F2 shortcut to navigate between errors in your document. if there is no error you will be navigated to the warnings.

2- another way that most of us know is to click on the red areas on the scrollbar.

here is the the link to the intelliJ IDEA help documents which is the base of Android Studio.

you can even press F2 in project window of Android Studio and it will select the files containing errors.

Also if there are no more errors it will point to warnings.

like image 189
Amir Ziarati Avatar answered Sep 29 '22 01:09

Amir Ziarati