Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 830
oxbow_lakes Avatar asked Apr 21 '10 08:04

oxbow_lakes


1 Answers

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.

like image 200
CrazyCoder Avatar answered Oct 26 '22 04:10

CrazyCoder