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`
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...
Dark background during the night, and light background during the day, in most cases.
As simple as that.
I wish my text editor would switch automatically and I might write a script to do that at some point, but this is a minor annoyance.