Featured Image – Photo by Sai Kiran Anagani on Unsplash
When you use ExpressJS using EJS as a view engine in Visual Studio Code (VS Code hereafter), you might run into the following error message when trying to format an EJS page with a keyboard shortcut
(Windows: Shift + Alt + F, MacOS: Shift + Option + F, Ubuntu Ctrl + Shift + I).
Sorry, but there is no formatter for ‘ejs’-files installed.
Luckily all you need to do is to add a user setting by associating
.ejs extension to be handled with an HTML formatter.