简体   繁体   English

如何让IntelliJ识别Play Framework * .scala.xml模板

[英]How to get IntelliJ to recognize Play Framework *.scala.xml Templates

Has anyone gotten IntelliJ IDEA to recognize *.scala.xml twirl templates? 有没有人获得IntelliJ IDEA识别* .scala.xml旋转模板? HTML templates seem to get picked up by the IDE just fine and seem to be the only supported template out of box, but any other type of templates do not get picked up. HTML模板似乎很好地被IDE选中,似乎是唯一受支持的模板,但任何其他类型的模板都不会被拾取。

I had the same problem and it seems that adding a file association did the trick. 我有同样的问题,似乎添加文件关联做了伎俩。

In Intellij IDEA 15 (ultimate edition): 在Intellij IDEA 15(终极版)中:

Preferences > Editor > File Types Search "Play 2" and add "*.scala.xml" (expect a long indexing after that) 首选项>编辑器>文件类型搜索“播放2”并添加“* .scala.xml”(之后需要很长的索引)

添加了* .scala.html的文件类型

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM