Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 698
Harry Avatar asked May 07 '12 21:05

Harry


People also ask

What is gutter in Sublime Text?

Gutter Color is a cross-platform Sublime Text plugin which displays a colored icon for all lines which contain a color.

How do you highlight in Sublime Text?

🖍 Text Marker (Highlighter) Simply use Alt + Space to mark selected text.

How do I use highlight color in Sublime Text?

Changing the selection colour in Sublime Text 3. Open the command palette with ⌘+⇧+P on mac iOS (for windows/linux Ctrl + Shif + P) and type prv to get the PackageResourceViewer options. Choose Open Resource >> Color Scheme – Default >> and choose your theme file to edit.


1 Answers

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.

like image 90
fraxel Avatar answered Sep 21 '22 05:09

fraxel