webstorm中js文件被识别成txt类型

问题描述:

webstorm中index.js文件被识别成txt格式,如下图。

原因:

webstorm中js文件被识别成txt文件,原因在于txt类型识别了以当前js文件名命名的模式。

解决办法:

File—Editor—FileTypes找到Text类型,将其中的index.js格式从中取消,apply—ok

同理其他被识别成txt(或其他格式)的js文件

原文地址:https://www.cnblogs.com/qingmuchuanqi48/p/14729053.html