Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode Language-Specific Background Color Like Notepad++

I have recently moved to VSCode from using Notepad++ for many years. In Notepad++, if editing an HTML file for example, the default editor background is white, however it was able to colorize the background of different languages within the editor such as PHP and JavaScript between the opening and closing brackets. For example, any PHP code between would have a light yellow background and JavaScript was light blue.

Is this possible in VSCode? This was extremely useful and a much missed feature since I moved to VSCode.

like image 295
Paul Avatar asked May 15 '18 01:05

Paul


People also ask

How do I change the background color in Visual Studio?

On the menu bar, select Tools > Options. In the options list, select Environment > General. In the Color theme list, choose between the default Dark theme, the Blue theme, the Blue (Extra Contrast) theme, and the Light theme. Or, choose the Use system setting option to select the theme that Windows uses.


1 Answers

This is not supported out of the box as of VS Code 1.24. This issue tracks per filetype themes

An extension could also hack something together to emulate this. See this guide for getting started writing an extension

like image 67
Matt Bierner Avatar answered Sep 28 '22 19:09

Matt Bierner