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

115,133

Solution 1

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

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 Code Linux keyboard shortcuts for zoom in/out:

  • in: Ctrl + =
  • out: Ctrl + -

Visual Studio Code Linux keyboard shortcuts

Solution 4

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

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)

Share:
115,133

Related videos on Youtube

ahsteele
Author by

ahsteele

Professional success influenced by practical academics has shaped my outlook on software development. I have never stopped learning and am always interested in refining my development processes. For me it is not just the programming, all aspects of software development excite me.

Updated on July 08, 2022

Comments

  • ahsteele
    ahsteele almost 2 years

    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?
  • ahsteele
    ahsteele almost 14 years
    Perfect this was definitely my preferred option. I try to avoid the mouse when I can. :)
  • 赵君君
    赵君君 almost 14 years
    @michael, whoops. Sorry for overwriting your edit. Thanks for the proper formatting.
  • Pierre
    Pierre over 8 years
    Thank you! The period/comma didn't seem to be very meaningful, until this http://blogs.msdn.com/b/zainnab/archive/2013/09/10/zooming-i‌​n-and-out-of-text-in‌​-the-editor.aspx pointed out it's also </>, "greater than" and "less than", which makes sense.
  • AnT stands with Russia
    AnT stands with Russia over 7 years
    These shourtcuts are not present by default in the most recent versions of Visual Studio (more precisely, for some reason they are restricted to Image Editor only). If you want to keep using them, you have to manually reassign them as global shortcuts in keyboard options.
  • green diod
    green diod over 7 years
    @Pierre I tried the msdn blog shortcuts within Visual Studio 2017 RC but they don't work! The ones in this answer still work.
  • Denziloe
    Denziloe about 5 years
    For anyone else who finds those keys impossible to read: they are comma and period (i.e. full stop) respectively. Note that shift-comma is < (less than) and shift-period is > (greater than).
  • PsylentKnight
    PsylentKnight over 3 years
    The question is about Visual Studio, not Visual Studio Code.
  • orion elenzil
    orion elenzil over 2 years
    this question is about Visual Studio, not Visual Studio Code. in Visual Studio, Ctrl + - is by default used for navigating backward in cursor position history.
  • orion elenzil
    orion elenzil over 2 years
    this question is about Visual Studio, not Visual Studio Code. in Visual Studio, Ctrl + - is by default used for navigating backward in cursor position history.
  • zurebe-pieter
    zurebe-pieter about 2 years
    This also works for Visual Studio 2022!
  • Jeppe Stig Nielsen
    Jeppe Stig Nielsen almost 2 years
    I think it is possible to create a menu item, or a tool bar button. You use Customize, then you create commands Zoom In and Zoom Out (found under category View).