Is there a way to zoom the Visual Studio text editor with a keyboard shortcut?
Visual StudioVisual Studio-2015Visual Studio-2013Visual Studio-2017Visual Studio-2019Visual Studio Problem Overview
Yesterday I found myself needing to zoom my Visual Studio text editor and was without a mouse (don't ask). Typically I do this by holding down CTRL and scrolling the mouse wheel. I also couldn't figure out how to tab into the area where you can specify your zoom level in the lower left hand corner of the text editor window.
So I guess I have two questions:
- Is there a menu setting somewhere that I could have navigated to via the keyboard to set my zoom level?
- Even better is there a similar keyboard command to holding CTRL and scrolling the mouse wheel?
Visual Studio Solutions
Solution 1 - Visual Studio
I don't know if there is a menu option, but there are keyboard shortcuts to set the zoom level.
ctrl+shift+. to Zoom In
ctrl+shift+, to Zoom Out
Solution 2 - Visual Studio
In my case, ReSharper reassigned Ctrl + Shift + , (aka Ctrl + Shift + < ) to ReSharper's Recent Edits command, and I wanted to reset it back to Visual Studio 2012's zoom out.
To do that, go to Tools -> Options. Under Environment -> Keyboard, remove the Ctrl + Shift + , hotkey from the ReSharper.ReSharper_GoToRecentEdits command (or any other commands), and assign the View.ZoomOut command back to Ctrl + Shift + , (use either Global or TextEditor mode).
Solution 3 - Visual Studio
Solution 4 - Visual Studio
If anyone is looking for an answer to the first question (as I was), you can hit Ctrl+F2, then hit the Tab key three times. This works in VS 2019, but doesn't appear to work in 2017.
Solution 5 - Visual Studio
Just an update for 2020-Sep. Ver 1.49. Win 10:
From keyboard shortcuts in-app ( Ctrl + k Ctrl + s .. or .. File Menu, Preferences, Keyboard Shortcuts):
Zoom In: Ctrl + = .. or .. Ctrl + Numpad_Add .. or .. Ctrl + Shft + =
Zoom Out: Ctrl + - .. or .. Ctrl + Numpad_Subtract .. or .. Ctrl + Shft + -
Reset Zoom: Ctrl + Numpad_0
NB: for VS-Code (may/Not be same ViZStd)
Solution 6 - Visual Studio
The default accessibility setting by Microsoft, if they havent been tampered or changed are:
Zoom In --> Ctrl + +
Zoom Out --> Ctrl + -
Here is the link to the official Microsoft's VS code accessibility page
Hope it helps someone else