File-->Setting(Ctrl+Alt+S),选择Editor-->General-->Appearance,右侧勾选Show line numbers
Android Studio显示行号
原文:http://www.cnblogs.com/xch-yang/p/7842747.html