How to show line numbers in Android Studio [duplicate]

心不动则不痛 提交于 2020-01-30 14:29:28

问题


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.


回答1:


In Windows

1.Press Ctrl+Shift+A

2.Input following string: "show line numbers"

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.




回答2:


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




回答3:


  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.

Source

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



来源:https://stackoverflow.com/questions/30056913/how-to-show-line-numbers-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!