visual-studio-code - 是否可以在 VSCode 中自定义 TabClos​​eButton 图标的颜色?

标签 visual-studio-code vscode-settings

VSCode version 1.16
当我在文件中有未保存的更改时,选项卡文件名称中的点实际上不可见,如下所示。

image of pending changes in a file

我想以某种方式突出显示它(例如改变它的颜色)。我通过 Dev tools 检查了点元素在 VSCode 中,它有一个 ciassaction-label icon close-editor-action但我不确定如何实现 CSS进入编辑器的定制..

我知道 workbench.colorCustomizations设置,但我还没有找到任何关于这个特别小东西的文档。tabCloseButton 唯一可定制的设置正在改变它的位置,而不是它的视觉。

有谁知道这如何实现?

最佳答案

分机 Custom CSS and JS Loader .

例如:更改整个未保存的选项卡:

.tab.dirty {
    background-origin: border-box;
    background-image: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      #465298 9px
    );
}

或更改关闭图标:

.tab.dirty .close-editor-action {
    background: #465298 !important; /* here could be some inline image*/
    border-radius: 50%;
}

关于visual-studio-code - 是否可以在 VSCode 中自定义 TabClos​​eButton 图标的颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46112914/

相关文章:

powershell - 如何在 vscode 终端中运行批处理文件

visual-studio-code - 我什么时候想在 WSL2 :Ubuntu vs VsCode Windows? 中安装 VSCode 扩展

visual-studio-code - 在 Find In Files 中跳转到 "files to include"输入的快捷键

visual-studio-code - 循环到 VSCode 中的先前建议

visual-studio-code - 在 Visual Studio Code 中显示符号链接(symbolic link)

keyboard-shortcuts - VS Code 中是否有 'Open Folder...' 键盘快捷键?

typescript TS6053 : File ' .ts' not found

typescript - VSCode 中的 Nativescript 共享模式总是用错误 "experimental support for decorators..."错误标记类

vscode-settings - VSCODE : How do i enable "tasks: Allow Automatic Tasks In Folder" by default?

visual-studio-code - 如何在 vscode 中设置匹配的括号颜色?