How do you zoom in Sublime Text 2 on a Mac? I’m well aware of how to do it in Windows but Ctrl + and Ctrl + Scroll doesn’t work. Thanks!
Zoom on Mac
Great answer. Sadly, this is super sad and lame that ⌘+Scroll does not work on macOS…
If you use an external mouse that has a scroll wheel with your Mac, you can create a file named Default (OSX).sublime-mousemap
in your User
package with the following contents in order to be able to do this:
[
{ "button": "scroll_down", "modifiers": ["super"], "command": "decrease_font_size" },
{ "button": "scroll_up", "modifiers": ["super"], "command": "increase_font_size" }
]
This doesn’t work with the trackpad or with a magic mouse (which seems to just simulate a track pad) because scroll touches on the trackpad don’t generate scroll wheel messages.
Warning! This will not work if you edit the Default (OSX).sublime-keymap
file, the one you open by choosing the Sublime Text
> Preferences
> Key Bindings
. I made this mistake and the mappings were not working at all.
Make sure you edit the file with the proper extension, that is Default (OSX).sublime-mousemap
.