Android Studio显示行号

File–>Setting(Ctrl+Alt+S),选择Editor–>General–>Appearance,右侧勾选Show line numbers

技术分享