For some reason, PHPStorm has decided to render any file named root.js as plain text without the JS coloring and debugging. Does anyone know how to correct this issue??? It is driving me crazy!!!
Go to IDE Settings -> File types and look for Text files in Recognized file types. There might be an added pattern named root.js
IDE Settings -> File types
Text files
root.js
For newer versions this setting is found in Editor -> File types
Editor -> File types
2.1m questions
2.1m answers
60 comments
56.9k users