skip to content

Search

Automatic theme switching for VS Code

1 min read

Enable automatic theme switching in VS Code based on your system theme. Quick guide on setting your preferred dark and light themes.

VSCode supports automatic theme switching based on the system theme using the window.autoDetectColorScheme setting.

Check available themes with Cmd+Shift+pPreferences: Color Theme, and add the below to settings.json:

{
  ...
  "window.autoDetectColorScheme": true,
  "workbench.preferredDarkColorTheme": "Atom One Dark",
  "workbench.preferredLightColorTheme": "Atom One Light",
  ...
}