3

While changing VS Code's "windows zoom" setting, I accidentally changed the zoom setting to 10, so now it is zoomed so much that I can't change it to default.

enter image description here

Gino Mempin
  • 25,369
  • 29
  • 96
  • 135
Gaurav
  • 147
  • 1
  • 10
  • Does this answer your question? [Can't zoom out in visual studio code](https://stackoverflow.com/questions/53696119/cant-zoom-out-in-visual-studio-code) – Gino Mempin Oct 28 '21 at 05:42
  • I have this bug too - I can increase the size of everything with Ctrl+= but Ctrl+- and Ctrl+0 don't do anything. – jozxyqk Feb 02 '23 at 18:34
  • See also: [How to change font size in VS Code sidebar?](https://stackoverflow.com/q/51456526/4561887) – Gabriel Staples Jul 28 '23 at 00:33

6 Answers6

2

click the reset zoom setting under View>Appearance>Reset Zoom.Otherwise you can use the hotkey which is (CTRL + -).

2

There are two types of zooms in VS Code:

  • Window zoom level: to reset, use Ctrl+Numpad0
  • Editor font zoom level: to reset, press Ctrl+Shift+P, search "Editor Font Zoom Reset". That's your guy.
amm98d
  • 1,997
  • 2
  • 9
  • 15
0

You can do Ctrl + - to dezoom.

polypode
  • 501
  • 3
  • 14
0

Go to this path C:\Users\<your admin name>\AppData\Roaming\Code\User

then open the settings file with any text editor at the end of the file change the window.zoomLevel to 0

after changing :

"window.zoomLevel": 0
Hamed Hajiloo
  • 964
  • 1
  • 10
  • 31
0

Everything there is to know about VSCode window zoom: zoom in and out, reset zoom, use fractional values

You can zoom in and out with Ctrl + + (technically Ctrl + =), and Ctrl + -, respectively.

But, that doesn't tell you where your default zoom level is exactly. To reset back to the default zoom level in a single go, there are three ways:

  1. If you have a numpad on your keyboard (I don't): Ctrl + NumPad0
  2. From the command menu: press Ctrl + Shift + P to enter the command menu, then search for "View: Reset Zoom", and select it.
  3. Open your user settings.json file by pressing Ctrl + Shift + P and then searching for "Preferences: Open User Settings (JSON)". Find your "window.zoomLevel" and set it to "window.zoomLevel": 0,.

Your zoom will be back to default.

If you're editing your user settings.json file directly (located at ~/.config/Code/User/settings.json on Linux, by the way), here are a few more possible values for it, to help you gain understanding:

// zoomed out 8 levels (this is the minimum zoom)
"window.zoomLevel": -8,


// zoomed out one level
"window.zoomLevel": -1,

// default zoom level
"window.zoomLevel": 0,

// zoomed in one level
"window.zoomLevel": 1,


// zoomed in 8 levels (this is the maximum zoom)
"window.zoomLevel": 8,

As you manually zoom in and out with Ctrl + + and Ctrl + -, you can see this setting change. When you get to the default zoom level of 0, it will remove the setting entirely, since that's the default zoom level.

You can open the default settings file to see all default settings by pressing Ctrl + Shift + P and then searching for "Preferences: Open Default Settings (JSON)".

In there you'll see this for the window zoom level. Notice that the explanation says you can also use zoom decimals for finer granularity (ex: "window.zoomLevel": 0.5):

// Adjust the zoom level of the window. The original size is 0 and each
// increment above (e.g. 1) or below (e.g. -1) represents zooming 20% larger or
// smaller. You can also enter decimals to adjust the zoom level with a finer
// granularity.
"window.zoomLevel": 0,

See also

  1. How to change font size in VS Code sidebar?

That's everything I know about VSCode zoom.

Gabriel Staples
  • 36,492
  • 15
  • 194
  • 265
-1

Use (Ctrl+-) to zoom out. Its simple you can google it as well

https://code.visualstudio.com/docs/editor/accessibility

Talal Siddiqui
  • 106
  • 1
  • 7