So, I see three possible causes of the problem:
1) The file was marked as "Plain Text"
2) There is a “Text Files” file type template that matches this file (or vice versa: the “JavaScript” file type excludes this file name). See image below.

3) There is a custom plugin that overrides the default behavior for files with this name (unlikely)
Note. The solution works for all IDEA-based IDEs: IntelliJ IDEA, WebStorm, RubyMine, PyCharm, PhpStorm.
anstarovoyt Nov 12 '14 at 13:24 2014-11-12 13:24
source share