options--preferences--appearanceapp
在show line numbers for modes下面的文本框里添加;Texio
这样新建或者打开tex文件的时候就自动显示行号了(已经打开的文件不受影响)文件