Hacker News new | ask | show | jobs
by cmbell715 2096 days ago
I know VS Code has a way to do it depending on window color scheme. Not sure if it is supported in Linux, but it is in Windows and MacOS. If your overall OS theme auto-changes based on time of day (or if you manually switch between light and dark mode whenever), VS Code will adjust as well.

In the settings turn on `window.autoDetectColorScheme: true` then select a theme for each: `workbench.preferredLightColorTheme` & `workbench.preferredDarkColorTheme`

1 comments

No, it's not supported on Linux due to this Chromium bug [1]. For example, GNOME automatically switches themes via an extension [2], and most apps like Firefox honor that setting. But not for Electron apps, at least not yet.

It would be great, since my personal preference is also light theme during the day, dark at night.

[1] https://bugs.chromium.org/p/chromium/issues/detail?id=998903

[2] https://extensions.gnome.org/extension/2236/night-theme-swit...