Visual Studio Code change font size for file explorer tray?

Visual Studio-Code

Visual Studio-Code Problem Overview


How do I change the font size for the file explorer in Visual Studio Code? There is not an option in the settings.json file.

Visual Studio-Code Solutions


Solution 1 - Visual Studio-Code

I've found that setting the zoom level in settings.json works well for this:

"window.zoomLevel": 1

Solution 2 - Visual Studio-Code

I have set

"window.zoomLevel": -1 and "editor.fontSize": 16.5

it works great here's a preview,

here's a preview

Solution 3 - Visual Studio-Code

enter image description here

Sample value : -1, 0, 1, 2, ...

I have mine set to 0, like this "window.zoomLevel": 0,

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

enter image description here

Solution 4 - Visual Studio-Code

I'm visually impaired and I had the same problem, my solution was

  1. "Zoom Out" until I achieved my desired Explorer size (CTRL-), everything will be zoomed out.

  2. Edit the settings.json and change the "fontSize" to 20 as reflected in my settings.json.

{
    "window.zoomLevel": 0,
    "editor.fontSize": 20,
    "php.validate.executablePath": "C:/apps/php 7.0.14/php.exe"
}

Solution 5 - Visual Studio-Code

Type CTRL+SHIFT+P inside your VSCODE window and type/select "Open Settings (JSON)"

If you find the default font settings tiny (very much like I do), inside the curly brackets type:

"editor.fontSize": 16,
"terminal.integrated.fontSize": 14,
"window.zoomLevel": 1.4,

Try changing the sizes until it works for you

Solution 6 - Visual Studio-Code

You can try:

Ctrl + + for zoom in

or

Ctrl + - for zoom out

Solution 7 - Visual Studio-Code

I found what worked for me was "window.zoomLevel": 0.25, "editor.fontSize": 12

Solution 8 - Visual Studio-Code

The decent way to do is to edit the "window.zoomLevel": 0, It changes everything on the screen from Project Explorer to your Font.

Also, You can customize only the font by "editor.fontSize": 15

P.S 15px is my personal choice.

Solution 9 - Visual Studio-Code

Been looking for this answer for a while now. Finally found it on a different thread: https://stackoverflow.com/a/50783324.

Essentially you override the keyboard shortcuts for View:ZoomIn and View:ZoomOut with the ones for "Editor Font Zoom In" and "Editor Font Zoom Out". Note that you don't need remove the View-based shortcuts, just enter the Editor ones and they'll move to the top and override.

Works perfect.

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

Kudos to czen

Solution 10 - Visual Studio-Code

Version: 1.43.1 (user setup) Date: 2020-03-18T07:01:20.184Z Electron: 7.1.11 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Windows_NT x64

Its under 'window zoom' in 'settings'

Solution 11 - Visual Studio-Code

The idea here is, you can make your window zoom level small and increase the font size, It will decrease the size of the window and font size you can select of your own size.

My MacBook Pro 16 settings.json is :

{

"window.zoomLevel": 0,
"editor.fontSize": 14,

}

Solution 12 - Visual Studio-Code

Here another solution but it needs done at every update. Open (windows)

 C:\Users\me\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\workbench.desktop.main.css

Then look for the first

  .part>.content

And replace the size.

  .part>.content{font-size:13px}

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionD ShorterView Question on Stackoverflow
Solution 1 - Visual Studio-CodehamiltoniaView Answer on Stackoverflow
Solution 2 - Visual Studio-Codeelainr5View Answer on Stackoverflow
Solution 3 - Visual Studio-Codecode-8View Answer on Stackoverflow
Solution 4 - Visual Studio-CodeLester JohnsonView Answer on Stackoverflow
Solution 5 - Visual Studio-CodeOranit DarView Answer on Stackoverflow
Solution 6 - Visual Studio-CodeBojanView Answer on Stackoverflow
Solution 7 - Visual Studio-CodeAbhishek DivekarView Answer on Stackoverflow
Solution 8 - Visual Studio-CodetheCaptainXgodView Answer on Stackoverflow
Solution 9 - Visual Studio-CodedavfiveView Answer on Stackoverflow
Solution 10 - Visual Studio-Codeuser11838067View Answer on Stackoverflow
Solution 11 - Visual Studio-CodeAlok TripathiView Answer on Stackoverflow
Solution 12 - Visual Studio-CodeEricView Answer on Stackoverflow