Search code examples
visual-studioide

Ctrl+? engages the Zoom in Visual Studio


I've been working in Visual Studio for 3 months. There are times when I press Ctrl+A and the Editor starts Zooming in usually a lot, over 200%. It's difficult to reproduce. It never Zooms out only Zooms in. I thought at first, perhaps I am moving my scroll wheel while the CTRL key is down but to get it to zoom over 200% takes many scrolls. I have never experienced this behavior in any other program, just Visual Studio.

I am using VS 17.11.4.

Is this happening to anyone else? I hope to record this behavior one day but it is difficult to reproduce. It did happen again today.

Nov 3, 2024.

It just happened again. It happened on CTRL+X (which I have mapped to my Logitech Mouse) this time. Zoomed to 176% (See below screenshot).

It Zoomed

Thank you


Solution

  • I did a quick test in VS17.11.4 but failed to reproduce this issue. For this issue , i would suggest the following to troubleshoot:

    1. The default shortcut for zooming in and out is the following. Looks like your shortcut has been changed. Please navigate to the Tools > Options > Environment > Keyboard and search for the commands View.ZoomIn and View.ZoomOutto check if you have customized the shortcut to CTRL+X/A.
    Zoom in  Ctrl+Shift+.   
    Zoom out    Ctrl+Shift+,
    
    1. Run the following command to reset your settings.
    devenv /ResetSettings
    
    
    1. Please check if you have installed any third-party extensions. If so, disable them temporarily. Then press CTRL+X to verify it.

    2. If the issue persists, please consider updating the VS to the latest version 17.11.5 or repairing your VS from VS Installer.

    Docs Referred:

    Keyboard shortcuts in Visual Studio

    /ResetSettings