Adnan used a cURL command to check if Elasticsearch is running or not.
But then the command returned the following error message.
curl: (7) Failed to connect to localhost port 9200: Connection refused
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.