С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)

0
5 comments

looks as if the file eks_1_let_const.js is 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 see eks_1_let_const.js or any pattern with .js suffix there?

0

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

0

Please also check the File type auto-detected by file content file type patterns

0

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

0

>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

0

Please sign in to leave a comment.