IntelliJ 无法正确识别特定文件,而是作为文本文件卡住 [英] IntelliJ not recognizing a particular file correctly, instead it's stuck as a text file

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

问题描述

我的 IntelliJ 项目中有一个 freemarker 文件 (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.

我知道标记为文本"选项.这可能是这个文件被标记为文本的最初原因,但我没有被提供标记为 ftl 文件".如果确实是问题所在,则可以选择将其退回.如果我将其他 ftl 文件标记为 txt,则可以按预期将它们转回 ftl 文件.

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

设置编辑器文件类型文本

对于 OS X

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

有时文件或模式卡在文件内容自动检测的文件类型而不是Text下.

Sometimes the file or pattern are stuck under File type auto-detected by file content instead of Text.

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

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