Sublime Text 2 Highlight Gutter

后端 未结 2 1453
慢半拍i
慢半拍i 2021-02-08 18:33

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 w

相关标签:
2条回答
  • 2021-02-08 18:50

    Some additions

    "font_size": 9.0,
    "caret_style": "smooth",
    "highlight_line": true,
    "line_padding_bottom": 2,
    "line_padding_top": 2,
    "fade_fold_buttons": false,
    
    0 讨论(0)
  • 2021-02-08 18:52

    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:

    enter image description here

    to:

    enter image description here

    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:

    enter image description here On saving, it should resolve your problem:

    enter image description here

    Only the 2nd step is really neccessary.

    0 讨论(0)
提交回复
热议问题