Search code examples
visual-studio-codecolorssettings

How to set the background color for files of different types in Visual Studio Code?


settings.json allows to define the background color for all files:

 "workbench.colorCustomizations": {
 "editor.background": "#F0F8FF" }

Is it possible to set different background colors, for example, for files with extensions html, php and js ?


Solution

  • The built-in features of VSCode do not allow you to customize the background color depending on the file type. There is an extension Theme by language. It allows you to customize the theme of VSCode depending on the programming language.