IntelliJ无法正确识别特定文件,而是卡在文本文件中 [英] IntelliJ not recognizing a particular file correctly, instead its stuck as a text file
问题描述
我的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
设置→ 编辑→ 文件类型→ 文本文件
Settings → Editor → File Types→ Text files
对于OS X
首选项 → 编辑→ 文件类型→ 文本文件
Preferences → Editor → File Types→ Text files
这篇关于IntelliJ无法正确识别特定文件,而是卡在文本文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!