Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to zoom the Visual Studio text editor with a keyboard shortcut?

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.

zoom in the lower left corner of the text editor window

So I guess I have two questions:

  1. Is there a menu setting somewhere that I could have navigated to via the keyboard to set my zoom level?
  2. Even better is there a similar keyboard command to holding CTRL and scrolling the mouse wheel?
like image 401
ahsteele Avatar asked Jun 22 '10 19:06

ahsteele


People also ask

How do I zoom in Visual Studio editor?

Visual Studio provides commands—View. ZoomIn (Ctrl+Shift+.) and View. ZoomOut (Ctrl+Shift+,)—that increase and decrease the zoom level in various parts of the IDE.

How do I zoom text in Visual Studio?

View > Appearance > Zoom In (Ctrl+=) - increase the Zoom level. View > Appearance > Zoom Out (Ctrl+-) - decrease the Zoom level.

How do I zoom out in Visual Studio designer?

If you've got multiple monitors you can drag the designer to a second screen and work with it that way, or you can press Alt+Shift+Enter to toggle full screen and work with it that way.


2 Answers

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

like image 182
Brandon Avatar answered Sep 24 '22 02:09

Brandon


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).

like image 38
David French Avatar answered Sep 27 '22 02:09

David French