10

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?

oxbow_lakes
  • 133,303
  • 56
  • 317
  • 449
  • I also use start IntelliJ with -Dfile.encoding=UTF-8, and set the IDE and project File Encoding to UTF-8. This avoids a few other problems with Unicode identifiers, for example, incorrect parsing of the textual output of the compiler. – retronym Apr 21 '10 at 21:23

1 Answers1

14

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.

oxbow_lakes
  • 133,303
  • 56
  • 317
  • 449
CrazyCoder
  • 389,263
  • 172
  • 990
  • 904