How to show line numbers in Android Studio

Line numbers are turned off by default.

Logcat shows line numbers when errors occur, therefore it is a good idea to have line numbers turned on.

To turn on line numbers:

  1. Press: Ctrl + Shift + A
  2. Санал авах: show l
  3. Click the toggle button to ON
  4. Click anywhere in the code to dismiss the search box