问题
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.
回答1:
In the Macros explorer under samples/accessibility there is an IncreaseTextEditorFontSize and a DecreaseTextEditorFontSize. Bind those to some keyboard shortcuts.
回答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.
回答3:
Ctrl + MouseWheel on active editor.
回答4:
Ctrl + MouseWheel works on almost anything...not just visual studio
回答5:
Use : Tools in Menu -> Options -> Environment -> Fonts and Colors
回答6:
Be sure to check out the VS 2010 Beta that was just released. The new editor should have this.
回答7:
I am using Visual Studio 2017 , I found below can change font size
回答8:
Ctrl + Alt + MouseWheel will work in Visual Studio 2015.
回答9:
You can chnage font size by ctrl + mousewheel.
OR
tools --> options --> environment --> font and color.
Detail with screenshot is mentonied here
回答10:
This worked for me:
Ctrl + - to minimize
Ctrl + + to maximize
来源:https://stackoverflow.com/questions/898964/shortcut-for-changing-font-size