Gerardo Contijoch
Gerardo Contijoch

Reputation: 2511

Shortcut for changing font size

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.

Upvotes: 117

Views: 139204

Answers (14)

Michał Dubrowski
Michał Dubrowski

Reputation: 1

In case ctrl + shift + , and ctrl + shift + . not working:

Press ctrl + shift + p, then type Open Keyboard Shortcuts(JSON), and paste following lines:

    {
        "key": "ctrl+shift+.",
        "command": "editor.action.fontZoomIn"
    },
    {
        "key": "ctrl+shift+,",
        "command": "editor.action.fontZoomOut"
    }

Upvotes: 0

Abhyuday Dubey
Abhyuday Dubey

Reputation: 1

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.

Upvotes: 0

Santanu Mondal
Santanu Mondal

Reputation: 1

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)

Upvotes: 0

Ashok Chhetri
Ashok Chhetri

Reputation: 539

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

Upvotes: 10

HO LI Pin
HO LI Pin

Reputation: 1681

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

enter image description here

Upvotes: 17

mpalencia
mpalencia

Reputation: 6027

This worked for me:

Ctrl + - to minimize

Ctrl + + to maximize

Upvotes: 0

BornToCode
BornToCode

Reputation: 10213

You'll probably find these shortcuts useful:

Ctrl+Shift+. to zoom in.

Ctrl+Shift+, to zoom out.

Those characters are period and comma, respectively.

Upvotes: 216

Gagandeep Singh
Gagandeep Singh

Reputation: 105

You can chnage font size by ctrl + mousewheel.

OR

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

Detail with screenshot is mentonied here

Upvotes: 2

jmart
jmart

Reputation: 29

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

Upvotes: 2

Nitin Kadam
Nitin Kadam

Reputation: 81

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

Upvotes: 8

Sentient
Sentient

Reputation: 2263

Ctrl + MouseWheel on active editor.

Upvotes: 130

Ash
Ash

Reputation: 798

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

Upvotes: 17

Jay Bazuzi
Jay Bazuzi

Reputation: 46516

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

Upvotes: 2

Martin Harris
Martin Harris

Reputation: 28617

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

Upvotes: 32

Related Questions