Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change font size in VS Code sidebar?

Querying for fontsize in User Settings window yields only settings for:

  • editor panes,
  • suggest widget,
  • markdown preview,
  • integrated terminal

as you can see below:

enter image description here

Doing the same for sidebar gives even poorer results:

enter image description here

Having fonts of different sizes in editor panes and sidebar looks... let's settle with: not too nice. Have I just found the greatest omission of this awesome tool?

like image 882
z33k Avatar asked Jul 21 '18 13:07

z33k


People also ask

How do I increase the font size of the sidebar in VS Code?

Answers 2 : of How to change font size in VS Code sidebar So here's a simpler solution. Just zoom the whole VS Code's UI in or out with CTRL++ or CTRL+- respectively and than adjust font sizes we do have control over in settings. json file, i.e.: editor.

How do I change font size in Visual Studio console?

In VSC 2019 go to File -> Preferences -> Settings -> Features -> Terminal and find option of font-size and change to apropriate value for your needs.


2 Answers

Just want to add to the discussion, If you set:

"window.zoomLevel": "your number", 

In my case I started with zero, you can use that as sort of a baseline:

"editor.fontSize": 14, "editor.tabSize": 2, "terminal.integrated.fontSize": 14, "window.zoomLevel": 0, "[Log]": {   "editor.fontSize": 14 }, 

And then tweaked until I was happy.

E.g. you want to increase the sidebar font size keeping editor font size unchanged: set "window.zoomLevel": 0.5 and "editor.fontSize": 18. Look at the result. Play with both values to get the result you like.

Hope this helps!

like image 193
Antonio Pavicevac-Ortiz Avatar answered Sep 16 '22 12:09

Antonio Pavicevac-Ortiz


Mihai Chelaru's answer presents a way to do more than just adjust the sidebar's font size. This, however, comes with a price of a bit of fiddling, possibly more than you'd be ready for, if the only thing you were interested in was the simple act of changing the sidebar's font size. So here's a simpler solution.

Just zoom the whole VS Code's UI in or out with CTRL++ or CTRL+- respectively and than adjust font sizes we do have control over in settings.json file, i.e.:

  • editor.fontSize,
  • editor.suggestFontSize,
  • markdown.preview.fontSize,
  • terminal.integrated.fontSize

so everything matches. That's it.

like image 37
z33k Avatar answered Sep 20 '22 12:09

z33k