Get started: Text size using scroll wheel


I am trying to create a package that will listen for mouse wheel event (and check if Ctrl is pressed), and if so, will increase/decrease editor text size accordingly.

I am v. familiar with HTML/JS (a little coffee script), but really don’t know where to start (obviously I have created the package shell) - but as far as finding mouse wheel events, setting text size etc.

Hopefully someone can help point me in the right direction! Thanks :smile:


I have tested the following, which seems to work well:


Now just need to plug into mousewheel event :smile:


So I have worked it out.

I have published my package here:

Pretty self explanatory, use the mousewheel event, check for ctrl key and increase/decrease font size. :smile:

Hopefully it helps others