Shortcut for changing font size
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
Related videos on Youtube
Sebastian Contreras
Updated on January 17, 2021Comments
-
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 about 3 yearsControl + scrolling mouse can change font size in vs 2019 on windows
-
-
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 over 7 yearsYou don't need the
Alt
. It'sCtrl + MouseWheel
as mentioned in other answers. -
Daniel Williams over 4 yearsThank you! Using VS in a Chrome based desktop RDP session, and the old mouse scroll was not working.
-
clearlight about 3 yearsYup that's the one that worked for me! Thanks.
-
Patrick Szalapski about 3 yearsThis suddenly quit working for me. Is this defined somewhere?
-
Devolus about 3 yearsAHHH! 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 over 2 yearsThey don't work in VS2019.
-
Fizz over 2 yearsWorks in VS2019.
-
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 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 over 2 yearsConfirming 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.