Harry
Harry

Reputation: 54989

Sublime Text 2 Highlight Gutter

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.

Upvotes: 9

Views: 7569

Answers (2)

Shemeer M Ali
Shemeer M Ali

Reputation: 1041

Some additions

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

Upvotes: 0

fraxel
fraxel

Reputation: 35309

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.

Upvotes: 19

Related Questions