在Visual Studio Code中有办法改变环境字体大小吗?像智能感知框,调试面板,文件名等。

我知道如何改变编辑器的字体大小,但我不知道如何改变环境字体大小。所以我想知道你是否能改变它。


当前回答

只是复制”编辑。fontSize": 18到你的设置。Json的编辑器。

按Control+Shift+P,然后输入“settings”,你就可以轻松找到用户或工作区设置文件。

其他回答

根据版本1.2的更新日志,增加了新的命令,可以放大和缩小字体,但可以放大和缩小整个UI。

更新日志:https://code.visualstudio.com/updates/v1_24 # _font-zoom-commands

使用以下键绑定替换默认的全局缩放动作:

在macOS:

{ "key": "cmd+numpad_add",      "command": "editor.action.fontZoomIn" },
{ "key": "shift+cmd+=",         "command": "editor.action.fontZoomIn" },
{ "key": "cmd+=",               "command": "editor.action.fontZoomIn" },
{ "key": "cmd+numpad_subtract", "command": "editor.action.fontZoomOut" },
{ "key": "shift+cmd+-",         "command": "editor.action.fontZoomOut" },
{ "key": "cmd+-",               "command": "editor.action.fontZoomOut" },
{ "key": "cmd+numpad0",         "command": "editor.action.fontZoomReset" },
{ "key": "cmd+0",               "command": "editor.action.fontZoomReset" },

在Windows和Linux上:

{ "key": "ctrl+numpad_add",      "command": "editor.action.fontZoomIn" },
{ "key": "shift+ctrl+=",         "command": "editor.action.fontZoomIn" },
{ "key": "ctrl+=",               "command": "editor.action.fontZoomIn" },
{ "key": "ctrl+numpad_subtract", "command": "editor.action.fontZoomOut" },
{ "key": "shift+ctrl+-",         "command": "editor.action.fontZoomOut" },
{ "key": "ctrl+-",               "command": "editor.action.fontZoomOut" },
{ "key": "ctrl+numpad0",         "command": "editor.action.fontZoomReset" },
{ "key": "ctrl+0",               "command": "editor.action.fontZoomReset" },

按Ctrl并使用鼠标滚轮放大或缩小。

As of mid 2017 To quickly get to the settings files press ctrl + shift + p and enter settings, there you will find the user settings and the workspace settings, be aware that the workspace settings will override the user settings, so it's better to use the latter directly to make it a global change (workspace settings will create a folder in your project root), from there you will have the option to add the option "editor.fontSize": 14 to your settings as a quick suggestion, but you can do it yourself and change the value to your preferred font size.

总结一下:

CTRL + shift + p 选择“用户设置” 添加”编辑器。字形大小”:14

在Visual Studio Code中,通过按Ctrl+和Ctrl-可以改变IDE的整体字体大小。 这比在每个会话中更改设置更快。

我把我的设置为“编辑”。字形大小”:12,

保存文件,您将立即看到效果。

享受吧!