Currently I cannot autoformat my code when I am in an EJS file, no auto-indenting works. When I change the file type on the bottom right to HTML it thinks the markup is invalid and breaks. Does anyone have suggestions?
EJS is a simple templating language that lets you generate HTML markup with plain JavaScript. No religiousness about how to organize things. No reinvention of iteration and control-flow. It's just plain JavaScript.
You can open EJS files with any text editor, since the files are saved in plain text format. However, you may want to use a source code editor that supports the language or allows you to install a plugin that supports the language to provide helpful coding features.
A suggestion is to keep HTML formater (or use .ejs like .html) and add to your settings :
"html.format.unformatted": "wbr,%"
After that, the indentation is not completely functional, but is better...
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