Сurious fact: file with name "eks_1_let_const.js" in project tree and editor looks like *.txt
Renaming eks_1_let_const.js to any other name (ex: eks_2_let_const.js :о) ) solves the problem
Webstorm 2021.2.3, build #WS-212.5457.55
Upload id: 2021_11_29_YL7xPHro86q6tKsB (file: webstorm_strange.png)
Please sign in to leave a comment.
looks as if the file
eks_1_let_const.jsis treated as plain text file. Please check the registered patterns in Preferences | Editor | File types, Text and Auto-detect file type by content file types - can you seeeks_1_let_const.jsor any pattern with.jssuffix there?File name patterns for Settings > Editor > File Types > Javascript: *.cjs, *.js
File name patterns for Settings > Editor > File Types > Text: screenshot (file name "eks_1_let_const.js" does not match any pattern)
Other *.js file treat correctly, if this file "eks_1_let_const.js" rename to "eks-1_let_const.js" (for example, or any other, without changes content, same content, only rename) - it's ok
Please also check the File type auto-detected by file content file type patterns
I can`t find this check (
Other solution: File > File Properties > Associate With File Type > File pattern "eks_1_let_const.js" : Open matching files in WebStorm >JavaScript
>I can`t find this check (
The file type name may be different depending on the IDE version (File type auto-detected by file content, Auto-detect file type by content) but it should be there