Alex V
Alex V

Reputation: 61

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 ?

Upvotes: 1

Views: 2322

Answers (2)

Alex V
Alex V

Reputation: 61

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.

Upvotes: 1

rioV8
rioV8

Reputation: 28673

With the extension When File you can change that theme color based on languageID or file location.

Upvotes: 3

Related Questions