更改字体大小的快捷方式

有人知道在 VisualStudio2008的文本编辑器中是否有更改字体大小的快捷方式或类似的方法吗?

我的意思是像 Firefox 中的 Ctrl + 鼠标轮一样。

访问选项窗口,然后选择环境 > 字体和颜色是可以的,如果你不需要改变字体大小所有的时间,但在我的情况下,我希望能够改变它取决于我在做什么(写和阅读代码或只是阅读)。

我想我可以创建两个几乎相同的设置文件,并随时导入它们,但这甚至更慢。

119530 次浏览

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

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

Ctrl + MouseWheel on active editor.

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

You'll probably find these shortcuts useful:

Ctrl+Shift+. to zoom in.

Ctrl+Shift+, to zoom out.

Those characters are period and comma, respectively.

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

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

You can chnage font size by ctrl + mousewheel.

OR

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

Detail with screenshot is mentonied here

This worked for me:

Ctrl + - to minimize

Ctrl + + to maximize

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

enter image description here

In visual studio 2019 you can use,

Either:

Ctrl + Shift + . To increase

Ctrl + Shift + , To decrease

Or

Go to Tools > Options... > Environment > Fonts and Colors

In visual studio code if your front is too small or too big, then you just need to zoom out or zoom in. To do that you just have to do:

  • For zoom in : ctrl + = (ctrl and equal both)
  • For zoom out: ctrl + - (ctrl and - both)