IntelliJ IDEA 无法识别属性文件 [英] IntelliJ IDEA does not recognize properties file

查看:112
本文介绍了IntelliJ IDEA 无法识别属性文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IntelliJ IDEA 无法识别我的属性文件,如下图所示.

IntelliJ IDEA does not recognize my property file as seen in the picture below.

当我将名称更改为 assetInformationFields" 以外的其他名称时,例如assetInformationField",它会被完美识别.

When I change the name to something other than "assetInformationFields" like "assetInformationField" it is recognized perfectly.

我已经尝试使缓存无效并重新启动.IntelliJ IDEA 版本:2017.1.5

I already tried to invalidate caches and restart. IntelliJ IDEA version: 2017.1.5

推荐答案

请看文件 |设置(Mac 上的首选项) |编辑器 |文件类型,选择文本文件并从那里删除assetInformationFields.properties.它很可能是从文件右键单击上下文菜单中意外添加的.

Please see File | Settings (Preferences on Mac) | Editor | File Types, select the Text files and remove assetInformationFields.properties from there. Most likely it was added by accident from the file right click context menu.

这篇关于IntelliJ IDEA 无法识别属性文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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