在用Eclipse进行开发的时候,Eclipse IDE默认是不显示行号的,显示行号的话会使开发更方便。 在eclipse中选择window->preference,General->Edotors->TextEditors,然后勾选右侧的Show line numbers,ok了! 转载于:https://www.cnblogs.com/wanyakun/archive/2011/04/26/3403234.html