Ankit Sinha
Ankit Sinha

Reputation: 1680

How to put multiple theme names in VSCode colorCustomization

For colour customisation of any theme in VSCode we do it like this

"workbench.colorCustomizations": {
    "[Night Owl No Italics]": {
      "activityBar.background": "#000C1D",
      "activityBar.border": "#102a44",
      "sideBar.background": "#001122",
      "sideBar.border": "#102a44",
      "sideBar.foreground": "#8BADC1"
    },

How to add multiple name in the theme may be like [Night Owl, Night Owl No Italics] (This doesn't work). I don't want to repeat and define the same properties twice for two different themes. Is there any way to do this?

Upvotes: 1

Views: 549

Answers (2)

Mark
Mark

Reputation: 181200

Coming in vscode v1.59:

There is new syntax to customize multiple themes at once:

    "workbench.colorCustomizations": {
        "[Abyss][Red]": {
            "activityBar.background": "#ff0000"
        },
        "[Monokai*]": {
            "activityBar.background": "#ff0000"
        }
    } ```

Multiple themes can be listed as well as the * wildcard character can be used at the beginning and the end of the name.

Upvotes: 3

Matt Bierner
Matt Bierner

Reputation: 65253

This is not supported as of VS Code 1.33. You have to either:

  • Duplicate the color customization for each theme
  • Set the color customization globally so that it applies to all themes

Please file a feature request if you would to see your proposal supported

Upvotes: 2

Related Questions