File->setting->Editor->General->Appearance,勾选Show line numbers 转载于:https://www.cnblogs.com/lutingting/p/5156460.html