Lately, I added a new extension to my VSCode setup that has proven to be quite beneficial for my workflow.
If you're interested, you can find this helpful extension at This Repository. It allows you to easily highlight the starting and ending syntax of code blocks. Personally, I've found it particularly useful when working with html.erb files as VSCode sometimes struggles to emphasize certain sections of code effectively.
Is there a way to configure the extension to work exclusively with specific languages or file types? Currently, it works universally across all file types, even in plain text documents (for instance, typing "do end" will trigger its underline feature regardless of whether I'm working in the ruby language or a .rb file). Ideally, I would like the extension to only function in .rb and .html.erb file formats.
Allow me to explain this from a more technical standpoint:
Current functionality:
When I open a Plain Text document in VSCode and type "do end", the extension automatically highlights it.
Desired functionality:
In an ideal scenario, when I am editing a Plain Text document in VSCode and type "do end," the extension s̲h̲o̲u̲l̲d̲ ̲n̲o̲t̲ underline it. Instead, it should solely highlight "do end" in .rb and .html.erb files.
Thank you for your help!