themesvisual-studio-code

Different themes for different languages in Visual Studio Code


I've tried searching for the answer to this but am coming up blank.

In sublime text, it's possible to have different themes for different file types as specified in the preferences file. For example, you can have a light coloured theme for Markdown/Plain text files and a normal Monokai type theme for all other languages. I find this very useful as I prefer to have different fonts and settings when typing compared to when coding.

As far as I can see, this functionality isn't present in VSCode. Am I wrong or is there a way to achieve the above?


Solution

  • It's now possible to do using an extension called "Theme by language" from Julien Saulou. It can be downloaded from Visual Studio Code Marketplace.

    This extension changes the VSCode theme each time the language of the selected code pane changes. This does not allow to have two panes open in one next to the other with a different theme for each.