Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switch theme with keyboard shortcut

Is is possible to assign a keyboard shortcut for switching between themes in VSCode?

I like Monokai or Monokai Seti for coding, but for writing documentation in Markdown I think light themes give better readability. I think this is because documentation text is mostly one color, whereas code is color highlighted for visibility.

To me it's most important to have a light theme for Markdown preview. It would be great if the MD preview pane could have a light theme while the actual MD code is Monokai or whatever.

like image 225
Michael Avatar asked Dec 11 '22 12:12

Michael


1 Answers

There is an extension called "NightSwitch-Lite" that provides "Toggle Day/Night" command, then you could assign a keyboard shortcut to that command (i have it assigned to ScrollLock) to switch between light and dark themes.

like image 144
plasmatron Avatar answered Jan 24 '23 23:01

plasmatron