Shortcut for changing font size

115,021

Solution 1

In the Macros explorer under samples/accessibility there is an IncreaseTextEditorFontSize and a DecreaseTextEditorFontSize. Bind those to some keyboard shortcuts.

Solution 2

You'll probably find these shortcuts useful:

Ctrl+Shift+. to zoom in.

Ctrl+Shift+, to zoom out.

Those characters are period and comma, respectively.

Solution 3

Ctrl + MouseWheel on active editor.

Solution 4

Ctrl + MouseWheel works on almost anything...not just visual studio

Solution 5

I am using Visual Studio 2017 , I found below can change font size

enter image description here

Share:
115,021

Related videos on Youtube

Sebastian Contreras
Author by

Sebastian Contreras

Updated on January 17, 2021

Comments

  • Sebastian Contreras
    Sebastian Contreras over 3 years

    Does anybody know if there is a shortcut or something similar for changing the font size in the text editor in Visual Studio 2008?

    What I mean is something like Ctrl + mouse wheel like in Firefox.

    Accessing the Options window and then selecting Environment > Fonts and Colors is fine if you don't have to change the font size all the time, but in my case, I would like to be able to change it depending on what I am doing (writing and reading code or just reading it).

    I guess I could create two almost identical settings files and import them whenever I want, but that is even slower.

    • Pavindu
      Pavindu about 3 years
      Control + scrolling mouse can change font size in vs 2019 on windows
  • Martin Harris
    Martin Harris over 11 years
    @Dolphin In VS2010 under Options-Environment-Keyboard you can bind the commands View.ZoomIn and View.ZoomOut. These are the equivalent of the mouse wheel zooming.
  • 41686d6564 stands w. Palestine
    41686d6564 stands w. Palestine over 7 years
    You don't need the Alt. It's Ctrl + MouseWheel as mentioned in other answers.
  • Daniel Williams
    Daniel Williams over 4 years
    Thank you! Using VS in a Chrome based desktop RDP session, and the old mouse scroll was not working.
  • clearlight
    clearlight about 3 years
    Yup that's the one that worked for me! Thanks.
  • Patrick Szalapski
    Patrick Szalapski about 3 years
    This suddenly quit working for me. Is this defined somewhere?
  • Devolus
    Devolus about 3 years
    AHHH! It was so annoying, because I accidently pressed some keys and suddenly the font was unreadable. And on the latpop I don't have a mouse with wheel to change it.
  • Fizz
    Fizz over 2 years
    They don't work in VS2019.
  • Fizz
    Fizz over 2 years
    Works in VS2019.
  • BornToCode
    BornToCode over 2 years
    @Fizz - I just verified and it works on VS2019 for me. Unless you changed the default I assume it should work for you as well.
  • Fizz
    Fizz over 2 years
    @BornToCode: no I haven't changed any defaults. Using 16.11.9 barely installed on a machine that didn't have any VS installed before.
  • RobMac
    RobMac over 2 years
    Confirming it still works in VS 2022 - this should be the selected answer, it addressed exactly what the OP asked for and it is the most up-voted.