In Sublime text, how do you disable increase/decrease font size with ctrl and mouse wheel?

Solution 1:

Found help on the sublime forums, should have looked there first. But I will post a solution in case anyone wants to do the same.

I am using linux, but answer similar for windows. Copy 'Default (Linux).sublime-mousemap' from '~/.config/sublime-text-2/Packages/Default' into '...Packages/User':

cd ~/.config/sublime-text-2/
cp Packages/Default\ (Linux).sublime-mousemap Packages/User/

Remove everything except font settings and change the command to null:

[
  // Change font size with ctrl+scroll wheel
  { "button": "scroll_down", "modifiers": ["ctrl"], "command": "null" },
  { "button": "scroll_up", "modifiers": ["ctrl"], "command": "null" }
]

Copy it into your User folder so settings don't reset after an update.

Update for Sublime Text 3: This works with sublime text 3 as well, you'll just have to create the file manually subl ~/.config/sublime-text-3/Packages/User/Default (Linux).sublime-mousemap

Solution 2:

Linux:

vim ~/.config/sublime-text-2/Packages/User/"Default (Linux).sublime-mousemap"

Set it to:

[
  // Change font size with ctrl+scroll wheel
  { "button": "scroll_down", "modifiers": ["ctrl"], "command": "null" },
  { "button": "scroll_up", "modifiers": ["ctrl"], "command": "null" }
]

Thanks to d_rail for the answer, just wanted to make it easier to do quickly.

Solution 3:

On sublime 3, linux:

cat <<EOF>~/.config/sublime-text-3/Packages/User/"Default (Linux).sublime-mousemap"
[
  // Change font size with ctrl+scroll wheel
  { "button": "scroll_down", "modifiers": ["ctrl"], "command": "null" },
  { "button": "scroll_up", "modifiers": ["ctrl"], "command": "null" }
]
EOF

Thanks to d_rail for the answer, just making it easier to do it quickly on sublime 3 :-)