So, I recently started working with EJS files within VSCode. Anyway, when I added the EJS extension, I lost all of HTML emmet functionality in my EJS files. However without the EJS extension HTML works fine but I obviously lose the JS syntax highlighting. Is there any work around for this?
What is the best set-up for working with EJS files in VSCode?
Any help would be greatly appreciated.
Guess you already made it work, but I'm gonna leave this here for future reference.
Add this to your Settings:
{
...,
...,
"emmet.includeLanguages": {
"ejs": "html"
}
}
The VS-Code docs tell us how to configure emmet for any file
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With