Skip to content

Bind zoom actions also to numpad equivalents #14979

Closed

Description

  • VSCode Version: Code 1.6.1 (9e4e44c, 2016-10-13T16:21:53.542Z)
  • OS Version: Windows_NT ia32 10.0.14393
  • Extensions: ms-vscode.csharp-1.4.1

Hello

I often needs zooming because of eyes and thats why i'm writing those wishes to your cool IDE...

  1. Could you please make default ability in Visual Studio Code to increase and decrease font size with setting "editor.mouseWheelZoom": true.
  2. Also zomming via keyboard Ctrl + "-", "+", "0" (on numeric keyboard) does not work, but it works in browsers...

Thanks.

Activity

  1. ffes commented on Nov 4, 2016

    @ffes

    Just in case... you know that Ctrl+- and Ctrl+= do this?

  2. drweb86 commented on Nov 4, 2016

    @drweb86
    Author

    Yea, but its much more comfortable with mouse.... Also Ctrl+= seems doesn't work since both keys are located on the same physical key. I think it'd better be Ctrl + ++ and Ctrl + -- as in browsers + mouse wheel.

  3. Tekbr commented on Nov 4, 2016

    @Tekbr

    To use the mouse scroll: "editor.mouseWheelZoom": true

    -- Sorry for the English, I used Google Translator --

    I know I have set up, but it would be interesting come by default also Ctrl + 0 (to reset the zoom), Ctrl + + (instead of =) and Ctrl + -, as in browsers.

    By default the "-", "+", "0" of the numeric keypad does not work. This should work as in browsers.

  4. drweb86 commented on Nov 4, 2016

    @drweb86
    Author

    I updated issue with your comments, Tekbr.

  5. changed the title [-]Could you please add increase and decrease font size with Ctrl+Mouse Wheel[/-] [+]Enable zooming with mouse wheel and Ctrl+numeric keyboard shortcuts[/+] on Nov 4, 2016
  6. alexdima commented on Nov 7, 2016

    @alexdima
    Member

    DrWeB

    regarding 1. the option is not on by default because trackpads are very susceptible to zoom in/out like crazy. It has been reported multiple times that, at least under mac, this gets triggered accidentally very often. Since we listen to mousewheel events coming from Chromium, and we cannot distiguish trackpad gestures from mouse gestures, we cannot work around it and have opted to make the feature opt-in by making the flag off by default.

    regarding 2. I can add more out-of-the-box keybindings for zooming, and I suggest this issue continues to track only point 2. (bind zoom actions also to ctrl + numpad keys)

  7. changed the title [-]Enable zooming with mouse wheel and Ctrl+numeric keyboard shortcuts[/-] [+]Bind zoom actions also to numpad equivalents[/+] on Nov 7, 2016
  8. added
    feature-request
    on Nov 7, 2016
  9. drweb86 commented on Nov 7, 2016

    @drweb86
    Author

    alexandrudima,

    Thanks. I didn't know that you have take into account sooo much considerations behind the scene. Also i thought you're coding it in wpf but as i see now IDE is most probably written in javascript itself.

  10. Tekbr commented on Nov 9, 2016

    @Tekbr

    alexandrudima

    I guess that was not quite it.

    1- Ctrl + + It should zoom in on the editor, the file we're moving, not the zoom of the whole program.
    2- Ctrl + - You should zoom out within the editor, the file you are moving, not the zoom of the entire program.
    3- Ctrl + 0 You should zoom back to the default, the file you are moving, not the zoom of the entire program.

    4- Ctr + +, Ctr + - should work the same way when we use "editor.mouseWheelZoom", by only zooming the file. And using Ctrl + 0 returns to the default.

    5- Ctr + = You should do nothing. The zoom continues. You must unlink this function.
    6- Ctrl + 0 of the non-numeric keyboard does not reset the zoom.

    Can you check it please?

    Version 1.8.0-insider ce6d578 2016-11-09T08:48:03.700Z

  11. Tekbr commented on Nov 21, 2016

    @Tekbr
  12. Tekbr commented on Dec 2, 2016

    @Tekbr

    alexandrudima Can you check this, please? Or say one why not do this?

  13. 1 remaining item

  14. added
    verification-needed
    on Dec 6, 2016
  15. added
    verified
    verification-found
    and removed
    verification-needed
    verified
    on Dec 8, 2016
  16. sandy081 commented on Dec 8, 2016

    @sandy081
    Member

    alexandrudima Reset zoom is not working in Mac with cmd+0

  17. Tekbr commented on Dec 8, 2016

    @Tekbr

    alexandrudima Please look at the other notes.

  18. alexdima commented on Dec 8, 2016

    @alexdima
    Member

    Tekbr please open a different issue, I agree with you that the zoom actions should be bound to increasing the font size of the editor, instead of zooming in the entire UI (which no other editor does AFAIK).

    In fact I am 100% in favor of eliminating the entire UI zoom we're shipping with, it causes many issues with font anti-aliasing for example and I have to maintain extraneous code to work around it (i.e. not using translate3d when the UI zoom is not 100%)

    This issue is about the binding of zooming actions to numpad keys (as the op wants) and after adding cmd+0, I will close it again.

  19. alexdima commented on Dec 8, 2016

    @alexdima
    Member

    Sandeep Somavarapu (@sandy081) Are you pressing the NUMPAD_0? Because that works for me. I cannot bind cmd+0 because that is used by another action.

  20. Tekbr commented on Dec 8, 2016

    @Tekbr

    alexandrudima About what Sandeep Somavarapu (@sandy081) said, I have the problem with Windows. Ctrl + 0 on non-numeric keyboard does not work. See issue #15840. It is a feature request that has been spoken about here before but has not been placed.

    I know I have set up, but it would be interesting come by default also Ctrl + 0 (to reset the zoom), Ctrl + + (instead of =) and Ctrl + -, as in browsers.

    I'm going to open a new issue about it as indicated.

    Tekbr please open a different issue, I agree with you that the zoom actions should be bound to increasing the font size of the editor, instead of zooming in the entire UI (which no other editor does AFAIK).
    In fact I am 100% in favor of eliminating the entire UI zoom we're shipping with, it causes many issues with font anti-aliasing for example and I have to maintain extraneous code to work around it (i.e. not using translate3d when the UI zoom is not 100%)
    This issue is about the binding of zooming actions to numpad keys (as the op wants) and after adding cmd+0, I will close it again.

    Thank you.

  21. sandy081 commented on Dec 9, 2016

    @sandy081
    Member

    alexandrudima I tried with Numpad 0 on my keyboard with numpad. Still reset zoom on Mac does not work for me.

  22. locked and limited conversation to collaborators on Nov 18, 2017
  23. added a commit that references this issue on Sep 6, 2026
    1effdf5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestverification-found

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions