Sublime Forum

Can't turn off highlight matches

#1

Hello,

When I select text, matches in my document get highlighted with a rounded rectangle. I can’t find a way to turn this off. I’ve made sure all the ‘Highlight matches’ buttons in the find menus are toggled off. Any ideas?

Beta 2181

Patrick

0 Likes

#2

Add the following to your user settings: "match_selection": false

0 Likes

#3

That did the trick. Thank you.

0 Likes

#4

Is it possible to set up a keyboard shortcut to toggle this behavior? In the sublime-keymap file I see the code for toggling case sensitive:

[code]{ “keys”: “super+alt+c”], “command”: “toggle_case_sensitive”, “context”:

		{ "key": "setting.is_widget", "operator": "equal", "operand": true }
	]
},[/code]

I have tried both of these but neither one works:

[code]{ “keys”: “super+alt+m”], “command”: “toggle_match_selection”, “context”:

	{ "key": "setting.is_widget", "operator": "equal", "operand": true }
]

},
[/code]

and this also fails to work:

[code]{ “keys”: “super+alt+m”], “command”: “toggle_highlight_matches”, “context”:

	{ "key": "setting.is_widget", "operator": "equal", "operand": true }
]

},
[/code]

I also tried binding to other keys besides m like k but that didn’t work, either.

0 Likes