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.
As I was learning React, I’ve run into a situation where I needed to use node as a backend. I found this wonderful article Create React App with an Express Backend by Dave Ceddia.
But debugging required opening two command windows; One for node server, another for webpack dev server.
- SET PORT=3001 && node bin/www
- SET PORT=3000 && yarn start
Can we do better?