Sublime Text 2 Highlight Gutter

北战南征 提交于 2019-12-04 11:50:32

问题


By default the line number / gutter area in sublime text 2 is highlighted when the caret is on that line. How can I turn it off?

I see options to hide the gutter but I want the line numbers to be visible. Thanks.


回答1:


To turn off line highlighting go to preferences>settings - User through the menus and add this line:

"highlight_line": false,

then save. I am using the default Monokai theme in linux, this will change it from:

to:

As you can see the line is no longer highlighted (it doesn't show in the picture but my cursor is still on the line), but the gutter numbers are. I think you also want to get rid of that? So, open the theme file .../sublime-text-2/Packages/Color Scheme - Default/Monokai.tmTheme, and change the <key>lineHighlight</key> colour, so it is the same as the <key>background</key> color, ie. #3E3D32 goes to #272822, like this:

On saving, it should resolve your problem:

Only the 2nd step is really neccessary.




回答2:


Some additions

"font_size": 9.0,
"caret_style": "smooth",
"highlight_line": true,
"line_padding_bottom": 2,
"line_padding_top": 2,
"fade_fold_buttons": false,


来源:https://stackoverflow.com/questions/10489546/sublime-text-2-highlight-gutter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!