Skip to content

Feature request: Allow zooming with ctrl+mousewheel combination #6978

Closed

Description

  • VSCode Version: 1.1.1
  • OS Version: Windows 7 x64

It would be great if holding the Ctrl key + spinning the mouse wheel would increase / decrease the VS Code zoom value.

Activity

  1. bpasero commented on May 30, 2016

    @bpasero
    Contributor

    I am not sure we want to zoom the entire UI when you use the mousewhell, I would expect only the editor font to increase. Thereby moving to alexandrudima

  2. cookch10 commented on May 31, 2016

    @cookch10
    Author

    Benjamin Pasero (@bpasero), yes you are correct.

  3. pcgeek86 commented on Jul 6, 2016

    @pcgeek86

    Didn't this feature used to work, or am I just failing to remember correctly? I was just going to report this as a bug, but maybe it never actually worked. I jump between different computer setups fairly regularly, so maybe I am just not remembering. Anyway, I found this dupe, and didn't want to submit a new issue. Thanks for your efforts Benjamin Pasero (@bpasero).

    By the way, I think I would expect this feature to work the same way that CTRL + + and CTRL + - work. VSCode's UI deviates from many other UIs in that it scales well, so I think I'd expect this to scale the entire UI consistently with the keyboard commands.

  4. seesharprun commented on Jul 6, 2016

    @seesharprun

    If this zooms only the editor, shouldn't it be seperate from Ctrl + +?

  5. coreh commented on Aug 5, 2016

    @coreh

    I would expect Ctrl + and Ctrl - to zoom only the editor. That behaviour would be consistent with most (all?) other editors and apps. Scaling the entire interface is an accessibility feature IMO, so maybe it doesn't need to use such a commonly used shortcut by default?

    Beyond Ctrl+Wheel, pinch to zoom should also zoom the editor.

  6. added
    feature-request
    on Aug 5, 2016
  7. pierznj commented on Oct 21, 2016

    @pierznj

    Can this be disabled? I'm constantly accidentally zooming my text to a tiny size when I ctrl-click and accidentally brush my fingers over the trackpad.

  8. alexdima commented on Oct 27, 2016

    @alexdima
    Member

    pierznj This is disabled by default, so you must have enabled it in the past -- "editor.mouseWheelZoom": false

  9. DarrenCook commented on May 5, 2017

    @DarrenCook

    alexandrudima Thanks - I came here to vote for this feature, and it turns out I just had to turn it on!

    Shouldn't this issue be closed?

  10. alexdima commented on May 29, 2017

    @alexdima
    Member

    👍 Closing since this is implemented. The feature is disabled by default due to numerous issues reported by users using touchpads where we begin to unexpectedly zoom in/zoom out when e.g. using ballistic scrolling and pressing the ctrl/cmd modifier. The root problem is that we cannot differentiate mousewheel events coming in from a real mouse with a wheel from those coming in from touchpads / trackpads.

  11. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    editor-corefeature-request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions