How to show line numbers in Android Studio

Android Studio

Android Studio Problem Overview


I'm posting a quick reference for "How can I show line numbers in Android Studio?" See answer below.

NOTE: This question has been marked as a duplicate because Android Studio is based on IntelliJ. In future, if you have a similar question, it's probably worth looking for the IntelliJ setting.

Android Studio Solutions


Solution 1 - Android Studio

In Windows

1.Press Ctrl+Shift+A

enter image description here 2.Input following string: "show line numbers"

enter image description here And you will see the setting, this method can find all the settings easily!

MAC

1.Press Command+Shift+A 2.Input following string: "show line numbers"

and following same flow of android studio.

Solution 2 - Android Studio

It's simple. Just Right click in left side of Workspace area and choose Show line number.

enter image description here

Solution 3 - Android Studio

  1. Go to File > Settings
  2. In the dialog, select 'Editor', then the sub-option for 'General', and then the sub-option for 'Appearance'.
  3. Select 'Show line numbers' as shown below.
  4. Click Ok.

enter image description here

Source

UPDATE The location for this setting has been changed to Editor -> General -> Appearance.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJsAndDotNetView Question on Stackoverflow
Solution 1 - Android StudiocodezjxView Answer on Stackoverflow
Solution 2 - Android StudioYuva RajView Answer on Stackoverflow
Solution 3 - Android StudioJsAndDotNetView Answer on Stackoverflow