Sublime Forum

Zoom on Mac

#1

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!

1 Like

#2

cmd= and cmd-

1 Like

#3

Thank you!!!

0 Likes

#4

Great answer. Sadly, this is super sad and lame that ⌘+Scroll does not work on macOS…

0 Likes

#5

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.

1 Like

#6

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.

0 Likes