小编Jos*_*han的帖子

VSCode:更改固定选项卡 - 缩小字体或增加选项卡宽度

我正在使用自定义 CSS 加载器,一切都已设置完毕。

我可以更改 VSCode 的 CSS 并进行更改。但由于某种原因我唯一无法更改的是选项卡中的文本。

当我只调整选项卡的字体大小时,我可以更改图标大小。但它对文本大小没有影响。

我尝试增加选项卡的宽度,但没有成功。

我只能猜测 .tab-container 和 .tab 的作用。

这是我想要改变的: 需要调整字体大小或固定标签宽度

这是我从 VSCode 问题中某人的建议中窃取的 CSS 代码:

:root {
    --size-reduction: 12px;
}

.monaco-shell {
  font-family: "JetBrains Mono", "Monoco", monospace;
}

.tabs-container .tab,
.tabs-container .monaco-icon-label,
.tabs-container .monaco-icon-label::before,
.tabs-and-actions-container .editor-actions {
    height: unset !important;
}

.monaco-workbench .tabs-container .tab * {
  font-size: 0.5em;
  width: 100px;
}

.editor-instance > .monaco-editor,
.editor-instance > .monaco-editor .overflow-guard,
.editor-instance > .monaco-editor .monaco-scrollable-element {
    height: 100% !important;
}

.editor-instance,
.editor-instance > .settings-editor .settings-toc-wrapper,
.editor-instance > …
Run Code Online (Sandbox Code Playgroud)

visual-studio-code

0
推荐指数
1
解决办法
1241
查看次数

标签 统计

visual-studio-code ×1