-》打开sdk工具 -》在菜单栏选中Window->Preferences->General->Editors->TextEditors->勾选“show line numbers”->ok 截图如下: