WebStorm 文件关联系统无法识别文件 [英] WebStorm File association system does not recognize a file
本文介绍了WebStorm 文件关联系统无法识别文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个名为 SetupObjects.vue
的 Vue 文件,但它不像其他文件那样与 Vue 语法相关联.这是我尝试做的:
I have this Vue file with the name SetupObjects.vue
, but it does not get associated with Vue syntax as the others are. Here is what I have tried to do:
- 删除它,重新创建它
- 删除它,在另一个文件夹中重新创建
- 删除它,在另一个项目中重新创建它
无论我做什么,文件都没有得到正确的关联.
No matter what I do, the file does not get its correct association.
推荐答案
看起来您使用错误的操作创建了该文件或在该过程中犯了错误,例如:
Looks like you have created that file using wrong action or made a mistake during that process, e.g.:
- 使用的<代码>文件|新 |文件...
- 没有在那里输入文件扩展名(只有文件名部分)..或者这是一个错误但未知的扩展名
- 然后在弹出对话框中自动按下 Enter.
设置/首选项 |编辑 |文件类型
- 检查以下文件类型条目:
按内容自动检测文件类型
文本
在关联应用程序中打开的文件
(此处不是您的情况)
Settings/Preferences | Editor | File Types
- Check the following file type entries:
Auto-detect file type by content
Text
Files opened in associated applications
(not your case here)
来源(PhpStorm 论坛帖子,更多细节)
Source (PhpStorm Forums thread, a bit more details)
这篇关于WebStorm 文件关联系统无法识别文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文