9

MacOS now supports both "Light" and "Dark" mode (found in "System Preferences", "General", "Appearance").

How can I make VS Code automatically change it's theme to be light or dark, when I change my MacOS "Appearance"?

14

This was released in 1.42:

Auto switch Theme based on OS color scheme

Windows and macOS now support light and dark color schemes. There is a new setting, window.autoDetectColorScheme, that instructs VS Code to listen to changes to the OS's color scheme and switch to a matching theme accordingly.

To customize the themes that are used when a color scheme changes, you can set the preferred light and dark theme with the settings:

  • workbench.preferredLightColorTheme
  • workbench.preferredDarkColorTheme
| improve this answer | |
  • And is it possible to manually override this setting? Like having a switch/command that switches to the preferred dark theme, even though my system setting is light. – LinusGeffarth Mar 18 at 11:25
  • @LinusGeffarth I just manually make the switch (instructions below - quite easy!). Haven’t looked for a way to switch based on the workbench setting. code.visualstudio.com/docs/getstarted/themes – JBallin Mar 18 at 18:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .