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

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


当前回答

根据版本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" },

其他回答

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

按照@Edwin的建议按Control+Shift+P后:

查找工作区设置:

然后“将您的设置放在文件右侧以覆盖……默认和用户设置”,或者单击“用户设置”选项卡来调整窗口。zoomLevel(如果这是所需的操作)。

同时按Ctrl、Shift、P键,出现菜单,搜索编辑器放大。 选择后,字体会变得更大的程度。

重复这个步骤,直到你达到你想要的字体大小。

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

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

在Visual Studio工作环境中更改字体大小的简单方法:

进入:File -> Preferences -> Settings OR按CTRL+,即CTRL+逗号。

这将打开settings.json。

你可以看到3个标签:

用户设置 工作空间设置 文件夹设置

进入用户设置,添加如下内容:

{
"editor.fontSize": 16
}

现在只需保存并关闭文件。

在上面的代码中,16代表字体大小。根据您的意愿增加或减少。