简体   繁体   English

在 Visual Studio Code 中仅缩放文本

[英]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?有没有办法让 Mac 上的 Vs-code 只缩放窗口的文本/文件窗格? When I hit Command ⌘+ to zoom, it'll zoom all of the window, ie.当我按 Command ⌘+ 进行缩放时,它会缩放所有窗口,即。 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.我只想放大源文件(屏幕截图中的 nfsd.sh)。

Answered in https://stackoverflow.com/a/41684631/5295392 :https://stackoverflow.com/a/41684631/5295392 中回答:

Out of Box solution for zoom in/out for text only:用于放大/缩小文本的开箱即用解决方案:

  1. Ctrl + Shift + P Ctrl + Shift + P
  2. Type (Open User Settings)类型(打开用户设置)
  3. Search (Edit settings.json)搜索(编辑 settings.json)
  4. Add "editor.mouseWheelZoom": true添加“editor.mouseWheelZoom”:true
  5. Save it.保存它。

You can use your mouse wheel to zoom in or zoom out only text in the text box.您可以使用鼠标滚轮仅放大或缩小文本框中的文本。

打开settings.json文件并增加editor.fontSize以增加源文件中文本的大小。

On Mac, while pressing the command key, slide two fingers upward to zoom out.在 Mac 上,在按下命令键的同时,向上滑动两根手指以缩小。 Slide downward to zoom in.向下滑动放大。

  1. Ctrl + Shift + P

  2. Search 'Zoom'搜索“缩放”

  3. Pick "Editor Font Zoom In"选择“编辑器字体放大”

Repeat till you get what you want.重复直到你得到你想要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM