Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode EJS extension, disables the HTML auto complete

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.

like image 882
Mtx Avatar asked Dec 08 '22 16:12

Mtx


1 Answers

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

like image 115
juanmnl Avatar answered Jan 18 '23 21:01

juanmnl