21

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 ;)

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

TessavWalstijn
  • 1,698
  • 1
  • 19
  • 36
Alexander Skwar
  • 875
  • 1
  • 9
  • 20

4 Answers4

37

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.

Alessio
  • 3,404
  • 19
  • 35
  • 48
Alexander Skwar
  • 875
  • 1
  • 9
  • 20
5

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

Akash Baga
  • 51
  • 3
1
  1. Ctrl + Shift + P

  2. Search 'Zoom'

  3. Pick "Editor Font Zoom In"

Repeat till you get what you want.

Mayowa Daniel
  • 397
  • 5
  • 14
0

On Mac, while pressing the command key, slide two fingers upward to zoom out. Slide downward to zoom in.

passion
  • 387
  • 4
  • 16