intellij 12终极版不识别文件类型较少?

时间:2013-12-04 12:48:25

标签: intellij-idea less

在我看来,intellij无法识别更少的文件,even though they state that they support less file types

我错过了什么吗?捆绑的编译器越少,但它们无法识别较少的语法?

The less file type does not show up as well in the file types of intellij 12

2 个答案:

答案 0 :(得分:1)

您的安装中已经捆绑了一个名为Less Support的插件,您应该启用它。

答案 1 :(得分:1)

虽然Less插件已激活,但我在Scala Play应用中遇到了此问题。

原因是IntelliJ没有将Less文件与Less相关联,而是与CSS相关联。

解决方案是告诉IntelliJ将以.less结尾的文件视为Less files:

转到SettingsFile TypesLess并注册*.less作为模式:

let less files be recognized by their file extension

然后将文件标记为Less(您可能需要先将文件标记为明文):

mark file as less