[英]Python Interactive Window Font
是否可以更改在 VSCode 中使用 Python 扩展时生成的新 Python 交互式窗口中显示的字体系列?
Currently, the only way to achieve this is by zooming in or out the entire VS Code window with View -> Appearance -> Zoom In/Zoom Out or use the Cmd
+ +
or Cmd
+ -
shortcuts (CTRL instead of Cmd on Windows).目前,实现此目的的唯一方法是使用 View -> Appearance -> Zoom In/Zoom Out 放大或缩小整个 VS Code 窗口或使用
Cmd
+ +
或Cmd
+ -
快捷方式(CTRL 而不是 Windows 上的 Cmd) . Do that until you get the desirable font size on the Python Interactive window.这样做直到您在 Python 交互窗口上获得所需的字体大小。
Of course zooming in or out will change the Python interactive window and the editor font size, but you can go to Settings and increase or decrease the font size of the editor until it becomes around same size as the Python Interactive window font size.当然,放大或缩小会改变 Python 交互窗口和编辑器的字体大小,但您可以转到“设置”并增大或减小编辑器的字体大小,直到它与 Python 交互窗口的字体大小大致相同。
I found workaround, I'm putting it for other users:我找到了解决方法,我将其提供给其他用户:
https://marketplace.visualstudio.com/items?itemName=iocave.customize-ui https://marketplace.visualstudio.com/items?itemName=iocave.customize-ui
Add custom styleheet to increase editor font size: "customizeUI.stylesheet": { ".view-line": "font-size: 18px" }添加自定义样式表以增加编辑器字体大小: "customizeUI.stylesheet": { ".view-line": "font-size: 18px" }
Zoom out whole window : Cmd + -缩小整个窗口:Cmd + -
If you're talking about the integrated terminal (which is actually a command shell for whichever operating system you're using, not just for Python), then you are looking for the terminal.integrated.fontFamily
setting in your settings.json
file.如果您在谈论集成终端(它实际上是您使用的任何操作系统的命令外壳,而不仅仅是 Python),那么您正在
settings.json
文件中寻找terminal.integrated.fontFamily
设置。 For example, you could use the following line:例如,您可以使用以下行:
"terminal.integrated.fontFamily": "Consolas",
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.