IntelliJ无法正确识别特定文件,而是卡在文本文件中 [英] IntelliJ not recognizing a particular file correctly, instead its stuck as a text file

查看:138
本文介绍了IntelliJ无法正确识别特定文件,而是卡在文本文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的IntelliJ项目中有一个freemarker文件(ftl)被错误地识别为文本文件。有许多相同的类型是正确的。我知道标记为文本选项。这可能是此文件被标记为文本的原始原因,但我没有提供标记为ftl文件选项将其关闭,如果确实这是问题。如果我将其他ftl文件标记为txt,我可以按预期将它们重新转换为ftl文件。

There is a freemarker file (ftl) in my IntelliJ project that is incorrectly recognized as a text file. There are many of the same type that are correct. I am aware of the "Mark as text" option. This may be the original reason this file was marked as text but I am not provided with a "mark as ftl file" option to turn it back, if indeed this is the problem. If I mark other ftl files as txt, I am able to turn them back into ftl files as expected.

推荐答案

请确保此文件(或代表它的模式)未列在

Please ensure that this file (or a pattern that represents it) is not listed under

设置编辑文件类型文本文件

SettingsEditorFile TypesText files

对于OS X

首选项 → 编辑文件类型文本文件

PreferencesEditorFile TypesText files

这篇关于IntelliJ无法正确识别特定文件,而是卡在文本文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆