108

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.

Alexander Abakumov
  • 13,617
  • 16
  • 88
  • 129
Gerardo Contijoch
  • 2,421
  • 5
  • 20
  • 29

13 Answers13

203

You'll probably find these shortcuts useful:

Ctrl+Shift+. to zoom in.

Ctrl+Shift+, to zoom out.

Those characters are period and comma, respectively.

Matthias Braun
  • 32,039
  • 22
  • 142
  • 171
BornToCode
  • 9,495
  • 9
  • 66
  • 83
  • They don't work in VS2019. – Fizz Jan 16 '22 at 14:11
  • @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. – BornToCode Jan 17 '22 at 11:48
  • @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. – Fizz Jan 17 '22 at 12:53
  • Is there a way to increase *all* font sizes? I know can go to `Tools in Menu -> Options -> Environment -> Fonts and Colors`, but then I have to change the settings for *each* window/component. I wouldn't mind, but I often log in remotely to the same machine using screens of wildly differing sizes. – user2023370 Sep 30 '22 at 15:54
  • 1
    @user2023370 - There's a Windows setting to increase text by 125% etc. you can also export and import VS settings with the font sizes you defined. – BornToCode Oct 18 '22 at 13:32
122

Ctrl + MouseWheel on active editor.

Sentient
  • 2,185
  • 2
  • 19
  • 20
32

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

Martin Harris
  • 28,277
  • 7
  • 90
  • 101
  • 1
    @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. – Martin Harris Dec 07 '12 at 11:16
16

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

Ash
  • 789
  • 1
  • 8
  • 24
14

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

enter image description here

HO LI Pin
  • 1,441
  • 13
  • 13
8

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

Nitin Kadam
  • 81
  • 1
  • 2
7

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

Ashok Chhetri
  • 428
  • 6
  • 10
2

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

jmart
  • 29
  • 1
2

You can chnage font size by ctrl + mousewheel.

OR

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

Detail with screenshot is mentonied here

2

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

Jay Bazuzi
  • 45,157
  • 15
  • 111
  • 168
0

This worked for me:

Ctrl + - to minimize

Ctrl + + to maximize

mpalencia
  • 5,481
  • 4
  • 45
  • 59
0

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)
RobC
  • 22,977
  • 20
  • 73
  • 80
0

For currently latest version of VScode (version 1.76.2),

simply add- "editor.mouseWheelZoom": true in setting.json file

and now you can simply press ctrl + mousewheel scroll to zoom in and out.