Shortcut for changing font size in Visual Studio

2019-03-08 06:44发布

Does anybody know if there is a shortcut or something similar for changing the font size in the 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!

Thanks!

8条回答
再贱就再见
2楼-- · 2019-03-08 07:01

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

查看更多
Luminary・发光体
3楼-- · 2019-03-08 07:03

Ctrl + MouseWheel on active editor.

查看更多
小情绪 Triste *
4楼-- · 2019-03-08 07:11

Ctrl + Alt + MouseWheel will work in Visual Studio 2015.

查看更多
爷的心禁止访问
5楼-- · 2019-03-08 07:16

You can chnage font size by ctrl + mousewheel.

OR

tools --> options --> environment --> font and color.

Detail with screenshot is mentonied here

查看更多
我欲成王,谁敢阻挡
6楼-- · 2019-03-08 07:24

Use : Tools in Menu -> Options -> Environment -> Fonts and Colors

查看更多
forever°为你锁心
7楼-- · 2019-03-08 07:24

Be sure to check out the VS 2010 Beta that was just released. The new editor should have this.

查看更多
登录 后发表回答