Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I automatically change from dark to light themes and back again in VS CODE?

In the morning, light comes out of the window and the monitor reflects it and prevents me from working with a dark theme. In the evening, in the dark, the light theme makes my eyes ache. I have to constantly switch back and forth.

Is there any way that Visual Studio Code automatically uses a light theme in the morning and a dark theme in the evening?

like image 487
kur4ch Avatar asked Aug 31 '25 23:08

kur4ch


1 Answers

Make it follow your OS theme. First option under "window" in VSCode settings -

enter image description here https://code.visualstudio.com/docs/getstarted/themes#_automatically-switch-based-on-os-color-scheme

window.autoDetectColorScheme

Then, just let your OS do the day/night switching. On mac os this can be done by setting the theme to "Auto". enter image description here

Similar option probably exists on windows too.

like image 75
charsi Avatar answered Sep 03 '25 17:09

charsi