Tool>>Option>>TextEditor>>All Language>>General>>Display>>Line
工具——选项——文本编辑器——所有语言——常规,将显示栏中的行号打钩即可。