Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zoom only Text in Visual Studio Code

Is there a way to make Vs-code on Mac only zoom the text/file pane of the window? When I hit Command ⌘+ to zoom, it'll zoom all of the window, ie. also the icons on the left hand side and the file pane on the left as well.

Compare these two screen shots, maybe ;)

  • Vs-code window, normal enter image description here
  • Vs-code window, zoomed in enter image description here

I'd only like the source file (nfsd.sh in the screen shot) to be zoomed.

like image 672
Alexander Skwar Avatar asked Apr 16 '18 07:04

Alexander Skwar


People also ask

How do I zoom text in VS Code?

View > Appearance > Zoom In (Ctrl+=) - increase the Zoom level. View > Appearance > Zoom Out (Ctrl+-) - decrease the Zoom level.

How do I zoom in code in Visual Studio terminal?

Using the Status Bar Click the + and - buttons on the status bar to increase/decrease the font-size by 1 pt. Click the middle Terminal button to bring up a selection menu to set a custom size.


2 Answers

Answered in https://stackoverflow.com/a/41684631/5295392:

Out of Box solution for zoom in/out for text only:

  1. Ctrl + Shift + P
  2. Type (Open User Settings)
  3. Search (Edit settings.json)
  4. Add "editor.mouseWheelZoom": true
  5. Save it.

You can use your mouse wheel to zoom in or zoom out only text in the text box.

like image 182
Alexander Skwar Avatar answered Oct 21 '22 05:10

Alexander Skwar


Open your settings.json file and increase editor.fontSize to increase the size of the text on the source file.

like image 45
Akash Baga Avatar answered Oct 21 '22 05:10

Akash Baga