开发者

How do I get the scalaz IDEA live templates working for the symbolic methods?

Many of the methods in scalaz have symbolic unicode equivalents, such as forever and (of course, I have this the wrong way round, the symbolic methods really have ASCII equivalents).

The project contains a live templates XML file for IDEA so these can be auto-completed, I believe by using the forever+TAB shortcut (in the above instance).

I can'开发者_如何学运维t figure out how to import this live template into IDEA and actually use it, though. How can I do that?


Live Templates XML file should be placed under IDEA configuration directory, templates subdirectory.

IDEA configuration folder location would depend on your platform:

  • Windows: USERPROFILE\.IntelliJIdeaXX\config
  • Linux: ~/.IntelliJIdeaXX/config
  • Mac OS X: ~/Library/Preferences/IntelliJIdeaXX

Where XX is IDEA version (90 for IDEA 9.x).

Make sure to close IDEA before copying the XML into the templates directory.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜