Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I edit an .ejs file in the intellij idea

I am trying to edit an .ejs File in the intellij idea I already installed the ejs plugin and restarted intellij but I can't open/edit the .ejs file

I am working on a node.js project

like image 711
André Schmid Avatar asked Oct 26 '25 17:10

André Schmid


1 Answers

The problem is though you have installed the plugin intelliJ still doesn't know that the plugin you installed(EJS plugin) should be associated with *.ejs files.

Do the following to let intelliJ know of that.

  • Go File -> Settings.
  • Type File Types
  • Open File Types tab.
  • Navigate to to the EJS plugin listed under Recognized File Types.
  • Add *.ejs into Registered Patterns below.

enter image description here

like image 83
Supun Wijerathne Avatar answered Oct 28 '25 07:10

Supun Wijerathne