【问题标题】:How do I change the colored bar of a selected cell in a notebook?如何更改笔记本中选定单元格的彩色条?
【发布时间】:2020-11-02 15:30:14
【问题描述】:

谁能告诉我如何改变这个蓝色条的颜色,表示当前选定的 jupyter notebook 的单元格?

我尝试更改一堆“workbench.colorCustomizations”选项(包括所有“notebook.something”选项),但它们似乎都不会影响这种颜色。

例如,我尝试将以下内容添加到我的 settings.json:

"workbench.colorCustomizations": {
    "notebook.cellToolbarSeparator":   "#991212", 
    "notebook.focusedCellBackground":  "#991212", 
    "notebook.cellHoverBackground":  "#991212", 
    "notebook.focusedCellBorder":   "#991212"
}

我还尝试了许多其他选项,但没有结果。

【问题讨论】:

    标签: visual-studio-code colors jupyter-notebook themes jupyter


    【解决方案1】:

    这个问题后面肯定有一些设置:

    "notebook.focusedCellBorder": "#ff0000",
    "notebook.focusedCellBorder": "#ff0000",
    "notebook.focusedCellBackground": "#ff0000",
    
    "notebook.inactiveFocusedCellBorder": "#ff0000",
    

    对于多选单元格但当前处于非活动状态的单元格,请参阅

    "notebook.inactiveSelectedCellBorder"
    

    请参阅 https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_55.md 了解最后一个 https://code.visualstudio.com/api/references/theme-color#notebook-colors 了解所有与笔记本相关的颜色。

    【讨论】:

      猜你喜欢
      • 2013-11-13
      • 2017-04-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-18
      • 1970-01-01
      • 1970-01-01
      • 2015-02-13
      相关资源
      最近更新 更多