If I right-click and scroll my mousewheel, it scrolls through the tabs. How can I disable this?
I’ve tried
“mouse_wheel_switches_tabs”: false
and
“enable_tab_scrolling”: false
to no effect.
Disable right-click + mousewheel scrolls tabs
enable_tab_scrolling
setting to false
actually hides the scroll tabs button (The <| |>
button pair you find to the immediate left of the first tab)
I have no idea what mouse_wheel_switches_tabs
does. It’s not defined in default Preferences, but there is a single mention of it in the theme documentation https://www.sublimetext.com/docs/themes.html#mouse_wheel_switches_tabs but I don’t know if this is the same as right click & scroll, since I use only Windows exclusively. Maybe someone who uses some Linux distro can confirm.
To cycle back to your question, you can create a Default (Windows).sublime-mousemap
file in the User
directory (Preferences -> Browse Packages ...
from the main menu) and then paste the following
[
// Switch files by holding down button 2, and using the scroll wheel - Default behavior.
// We now simply copy the bindings and assign the command to "noop" to disable this.
{ "button": "scroll_down", "modifiers": ["button2"], "command": "noop" },
{ "button": "scroll_up", "modifiers": ["button2"], "command": "noop" },
]
The behavior should now be disabled.