0

All of a sudden webstorm doesn't recognise Javascript for me.

If I add a file like this :

enter image description here

All I see in my IDE afterwards is this :

enter image description here

If I refresh, restart Webstorm, it still does not recognise the file! Webstorm has become unusable!

Oliver Watkins
  • 12,575
  • 33
  • 119
  • 225
  • Is this webstorm 10? – mbx-mbx Apr 01 '15 at 13:00
  • Oh. 10 works ok for me :-) – mbx-mbx Apr 01 '15 at 13:04
  • Couldn't it be related to this? http://stackoverflow.com/questions/9330571/php-storm-doesnt-recognize-javascript – Bruno Toffolo Apr 01 '15 at 13:10
  • A bit of off topic: You do not need to provide extension when creating file using specialized "new file" dialog (like on your screenshot) -- it only required if you are using generic "new file" where full file name is required (which allows you to create files like "README" or ".htaccess") – LazyOne Apr 02 '15 at 10:19
  • See http://stackoverflow.com/questions/26872024/webstorm-not-recognising-javascript-file – Casper Jul 15 '16 at 10:43
  • Possible duplicate of [Webstorm not recognising Javascript file](https://stackoverflow.com/questions/26872024/webstorm-not-recognising-javascript-file) – steampowered Jun 24 '17 at 04:04

1 Answers1

3

If @Bruno's link doesn't help, please try to right click the file and select "mark as plain text". Once done, right click it again and select "mark as javascript" - works for me in phpStorm

baao
  • 71,625
  • 17
  • 143
  • 203