447

Is there a way to change the environment font size in Visual Studio Code? Stuff like IntelliSense box, debug panel, file names, etc.

I know how to change the editor's font size but I cannot figure out how to change the environment font size. So I wonder if you can change it somehow.

7
  • 3
    All these answers also change the editor font size. How can I change the environment font size without the editor?
    – mark-hahn
    Nov 1, 2019 at 18:41
  • 15
    Surprising how much non answers get up voted. An answer to the OP question is just not be found here. Yet so many repeat the same answer to the exact same, yet different question from the OP. Nov 9, 2019 at 16:09
  • 2
    Astonishing the number of posts that aren't answering the actual question but how to change the font size Apr 14, 2021 at 15:04
  • 14
    Use CTRL+ and CTRL- to zoom the IDE, you dont have to look for the setting... for whoever reads this after reading the answer below...
    – Rmaxx
    May 10, 2021 at 19:19
  • 1
    User Arleme finally posted correct approach to solving the problem on July 16, 2021. You have to manually tinker with c:/Users/<username>/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.css file. Looks like different sections of vscode have their font-size defined in different places. Also, increasing the font-size does not increase padding or line height, so merely increasing font-size is not enough. MS needs to develop a setting for this. Nov 5, 2021 at 11:56

26 Answers 26

482

Currently it is not possible to change the font family or size outside the editor. You can however zoom the entire user interface in and out from the View menu.

Update for our VS Code 1.0 release:

A newly introduced setting window.zoomLevel allows to persist the zoom level for good! It can have both negative and positive values to zoom in or out.

4
  • if you zoom out and wonder why the cursor is disappearing, check if you have it set to "thin line". Setting it to "line" will correct the problem, at least for down to 60% zoom. Oct 20, 2018 at 19:08
  • 4
    Window zoom has a downside, it can trigger "fuzzy fonts" in terminal for instance: github.com/microsoft/vscode/issues/84194
    – sandos
    Nov 14, 2019 at 9:36
  • 12
    Use CTRL+ and CTRL- to zoom the IDE, you dont have to look for the setting...
    – Rmaxx
    May 10, 2021 at 19:18
  • It works. But it won't change the font size in the drop down menus. That is set by the operation system (at least on Mac OS X).
    – asmaier
    Sep 28, 2022 at 19:21
239

In Visual Studio Code, by pressing Ctrl+ and Ctrl- you can change the overall font size of the IDE. This helps faster than changing settings in every session.

3
  • 15
    note, this modifies user settings "window.zoomLevel": 1, Feb 21, 2018 at 14:01
  • 4
    In the most recent version, zoom in is Ctrl + = Apr 2, 2018 at 1:55
  • Than you. This is what I was looking for.
    – RaviLobo
    Jun 14, 2022 at 11:56
238

Just copy "editor.fontSize": 18 into your setting.json of the editor.

Pressing Control+Shift+P and then typing "settings" will allow you to easily find the user or workspace settings file.

enter image description here

5
  • 45
    This work well, but not the same as OP want, to resize whole things not only in text editor
    – Thaina Yu
    Dec 24, 2016 at 7:39
  • @StepanSuvorov see my new answer below, i know it comes late though, cheers! Jan 5, 2017 at 16:44
  • @randomguy04 still don't see shortcut for changing size in your answer Jan 6, 2017 at 12:19
  • this worked for me, I wanted to increase the font size of the open file only, not the sidebar, so I did the above and set increase font size to a defined hotkey.
    – Sam
    Feb 5, 2021 at 21:05
  • This is correct. ✓
    – Guy Lepage
    Apr 18 at 14:13
103

Try playing around with a combination of the following user settings:

{
  "editor.fontSize": 18,
  "window.zoomLevel": 1.5,
}
5
  • 3
    this should be added into the accepted answer. Very concise and on point
    – F.S.
    Oct 30, 2019 at 17:39
  • 9
    "window.zoomLevel": 1.5 is a very good choice for old guy like me
    – e2a
    Nov 22, 2019 at 17:59
  • 2
    All the bad answers here with a ton of upvotes, this is finally the right approach.
    – Mark
    Jun 26, 2020 at 3:22
  • If you want the text smaller choose a negative number: "window.zoomLevel": -0.5 Sep 15, 2021 at 8:57
  • +1. Using keyboard shortcuts modifies this value by 1 (integer). Didn't know it could be set to decimals/floats.
    – akinuri
    Mar 27 at 8:58
22

As of mid 2017 To quickly get to the settings files press ctrl + shift + p and enter settings, there you will find the user settings and the workspace settings, be aware that the workspace settings will override the user settings, so it's better to use the latter directly to make it a global change (workspace settings will create a folder in your project root), from there you will have the option to add the option "editor.fontSize": 14 to your settings as a quick suggestion, but you can do it yourself and change the value to your preferred font size.

To sum it up:

  1. ctrl + shift + p

  2. select "user settings"

  3. add "editor.fontSize": 14

3
  • 21
    this does NOT answer OP's question. OP specifically asks for changing environment font size, not editor font.
    – F.S.
    Oct 30, 2019 at 17:38
  • Thanks for the Feedback @Chris, however I do think it answers the question and has the necessary information. if you want it to have it per environment, change the workspace settings rather than the user settings and, your specifi env settings will be persisted in the .vscode folder Nov 4, 2019 at 9:56
  • 12
    The OP asks for the environment, as in everything in the GUI that is not in the text editor, Stuff like IntelliSense box, debug panel, file names, etc. I could be wrong, but I don't think OP refers to the env that you are talking about
    – F.S.
    Nov 4, 2019 at 23:42
21

You can Zoom In and Zoom Out the entire user interface from the View menu.

Right now i'm using version 1.21.1 and there in view menu you can get the Zoom in and Zoom out option which are the 2nd and 3rd last options. You can do it by using Ctrl + + and Ctrl + -.

You can reset the zoom at any time by selecting Reset Zoom option.

2
  • 1
    Here the entire user interface means the VSCode editor. May 31, 2018 at 11:34
  • Yeah, that scales the entire window, which is perfect if you have a high resolution screen
    – klapshin
    Apr 2, 2019 at 3:38
16

After Pressing Control+Shift+P as suggested by @Edwin:

  1. Look for Workspace Settings:

enter image description here

  1. Then "Place your settings in the file to the right to overwrite...default and user settings," or click the UserSettings tab to adjust the window.zoomLevel if that is the desired action.

enter image description here

14

In Visual Studio Code, the font-size can be easily changed from the Settings tab.

The simplest way to do this is to press Ctrl + Shift + P and then type 'Settings'. This will show you a few results. Choose 'Settings(UI)'. The Settings tab will get opened in the editor. Now you can change the font settings from here. This will only affect the editor's font.

Or, you can also click on the settings icon on the left bottom of the window and search for font from there.

enter image description here

In order to change the font size of the entire environment, you may consider pressing ctrl++. This will work like zooming into the whole environment, resulting in an increased font-size.

Select Settings(UI)

12

According to the changelog of version 1.2, new commands were added to zoom in and out only the font but the entire UI.

Changelog: https://code.visualstudio.com/updates/v1_24#_font-zoom-commands

Use the following keybindings to replace the default global zoom actions:

on macOS:

{ "key": "cmd+numpad_add",      "command": "editor.action.fontZoomIn" },
{ "key": "shift+cmd+=",         "command": "editor.action.fontZoomIn" },
{ "key": "cmd+=",               "command": "editor.action.fontZoomIn" },
{ "key": "cmd+numpad_subtract", "command": "editor.action.fontZoomOut" },
{ "key": "shift+cmd+-",         "command": "editor.action.fontZoomOut" },
{ "key": "cmd+-",               "command": "editor.action.fontZoomOut" },
{ "key": "cmd+numpad0",         "command": "editor.action.fontZoomReset" },
{ "key": "cmd+0",               "command": "editor.action.fontZoomReset" },

on Windows and Linux:

{ "key": "ctrl+numpad_add",      "command": "editor.action.fontZoomIn" },
{ "key": "shift+ctrl+=",         "command": "editor.action.fontZoomIn" },
{ "key": "ctrl+=",               "command": "editor.action.fontZoomIn" },
{ "key": "ctrl+numpad_subtract", "command": "editor.action.fontZoomOut" },
{ "key": "shift+ctrl+-",         "command": "editor.action.fontZoomOut" },
{ "key": "ctrl+-",               "command": "editor.action.fontZoomOut" },
{ "key": "ctrl+numpad0",         "command": "editor.action.fontZoomReset" },
{ "key": "ctrl+0",               "command": "editor.action.fontZoomReset" },
1
  • Try this: 1. Ctrl+Shift+P -> 2. Search for (Preferences: Open Keyboard Shortcuts) -> 3. At the top right end of Keyboard Shortcuts [Tab], Next to the Split Editor Button there is the Open Keyboard Shortcuts(JSON) button to open keybindings.json file -> 4. Paste the above commands in that keybinding.json file and save -> 5. Now test the above key combinations to change the just only font size in VS code without changing the UI size Sep 22, 2022 at 7:49
11

(VS Code 1.33.1 on Windows 7)

Zoom all (UI and editor): CTRL + +, CTRL + -.

Zoom editor: CTRL + Mouse Wheel.

See below how i fixed it.

As suggested by @Edwin: Pressing Control+Shift+P and then typing "settings" will allow you to easily find the user or workspace settings file.

My settings file is found here: "C:\Users\You_user\AppData\Roaming\Code\User\settings.json"

My file looks like this:

{
    "editor.fontSize": 12,
    "editor.suggestFontSize": 6,
    "markdown.preview.fontSize": 0,
    "terminal.integrated.fontSize": 10,
    "window.zoomLevel": 0,
    "workbench.sideBar.location": "left",
    "editor.mouseWheelZoom": true
}
10

Press Ctrl + Shift + P and go to Settings -> Preferences: Open Settings (JSON) -> settings.json Copy and paste the following code lines:

"editor.fontSize": 15,
"window.zoomLevel": -1,

Save and close the file Ctrl + S this will get your work done. You can also experiment it by changing those values.

9

A Simple approach to change the Font Size in Visual Studio Work Environment :

Go To : File -> Preferences -> Settings OR Press CTRL+, i.e. CTRL + COMMA.

This will open settings.json.

You can see 3 tabs there :

  1. User Settings
  2. Workspace Settings
  3. Folder Settings

Go to User Settings and Add this :

{
"editor.fontSize": 16
}

Now just save and close the file.

In above code, 16 represents the font size. Increase of Decrease as per your wish.

8

enter image description here

I have mine set to "editor.fontSize": 12,

Save the file, you will see the effect right the way.

enter image description here

Enjoy !

1
  • 8
    that's not what was asked for
    – JohnC
    Jan 25, 2018 at 23:40
8

Took me ages to work out what I'd accidentally done when my code window went huge:

Zoom out = Ctrl + Shift + , (comma)

Zoom in = Ctrl + Shift + . (full stop/period)

Not actually an answer to the posted question at all but I think someone like me will end up here because of the symptoms!

0
7

As of now (March 2018) & version 1.21.0, you can go to Settings, search for 'zoom' and change "editor.mouseWheelZoom": false which is false by default to true. This will allow to zoom in/out on VS Code using control button and mouse - ctrl + scrollUp/scrollDown. For changing the fontSize of the overall working space/screen of VS Code, refer to Alegozalves's answer above.

7

Press Ctrl, Shift, P at the same time, a menu will appear, search for Editor Zoom in. After selecting that, the font will get larger by some degree.

Repeat this until you achieve your desired font size.

0
6

There are many options to change the font size in the Visual studio code(version:1.36.1), Editor

Option 1:

Go To: File > Preferences > Settings > select User tab > Text Editor > Font > Font Size

Font Size: Change font size in pixels as per your requirement


Option 2:

Press Ctrl + P

Search: settings.json, Open file and add this line in settings.json file:

{
    "editor.fontSize": 20
}

Note: Save file after changes


Option 3:

Press Ctrl + Shift + P

Search: Editor Font Zoom In

  • Just click on it, your font size will be increased

Search: Editor Font Zoom Out

  • Just click on it, your font size will be decreased
1
  • 5
    this is the fifth answer that does not answer the question in the same way Jun 18, 2021 at 15:05
4

FOR MAC

command with + command with -

FOR WINDOWS

control with + control with -

3

If you really want to change the environment's font, edit the css in

c:/Users/etech/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.css

Just put at the end of the file your custom CSS :

body{
   font-size : 15px !important
}
1
  • 2
    This is the closest to correct answer. You have to tinker with workbench.desktop.main.css file to increase environment font. Nov 5, 2021 at 11:55
2

On windows, in 2022 I will use,

CTRL + + to zoom in and CTRL + - to zoom out the environment.

1

Press Ctrl and use the mouse wheel to zoom In or Out.

1
  • You can Zoom In and Zoom Out the entire user interface from the View menu. But question is how to change font size
    – user3133925
    Apr 9, 2019 at 11:21
1
  1. Open VS Code
  2. Type command CTRL + SHFT + P
  3. Type Settings
  4. Settings file will open.
  5. Now under User > Text Editor > Font, find Font Size
  6. Enter your desired font size

That's it.

2
  • 4
    This is not what the question was about. It was about the environment font (menus etc), not the text editor font.
    – larsch
    Sep 22, 2020 at 9:56
  • 1
    This is not what the question is about. You're telling us how to configure editor font size, not the environment/shell font size. Sep 24, 2020 at 14:27
1

I realize this response is very "late in the game", but I think I have a solution that actually addresses the OP's original question on how to increase the font of the menus. It would appear that VSCode sets its Menu font size based on the operating system. The "fix" I am about to describe will change the font size of ALL apps, not just VSCode so use accordingly. This is Windows specific, but there may be corresponding setting(s) for Linux and Mac. Press the Windows key and search for Settings, from there search for Ease of Access display settings. From there use the slider to "Make Text Bigger" and then click Apply. This will take several seconds to Apply and all screens will be blue while the change is taking affect. Look Here

0

There is a setting window.zoom that can enlarge the entire window content including the top menus and side nav tree. Setting this to 1 on a 4k monitor makes the content similar to a 1080p monitor of the same physical size.

0

If you want to increase the font size of your code without increasing the entire editor.. you can enable editor.mousewheelzoom enter image description here

Now hold CTRL and mouse wheel to zoom-out or zoom-in

-3

File --> Preferences --> Settings --> User --> Font --> Font Size Enter the Font size. You can sync these settings with your Git Hub or Microsoft TFS.

enter image description here

https://code.visualstudio.com/docs/getstarted/settings

1
  • 3
    Please re-read the question. The question is asking about changing the font size for the whole environment, not just the editor (where they also say they already know how to change the editor font size), and the latter has already been covered in multiple previous answers. Dec 7, 2020 at 4:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.