Search code examples
phpstorm

PHPStorm renders a particular file name as plain text


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!!!


Solution

  • Go to IDE Settings -> File types and look for Text files in Recognized file types. There might be an added pattern named root.js

    enter image description here


    For newer versions this setting is found in Editor -> File types

    enter image description here