设置方法如下:

 
File->Settings->Editor->General->Appearence->Show Line Number
 
IntelliJ IDEA 显示行号方法

相关文章: