如何让scalaz IDEA实时模板用于符号方法? [英] How do I get the scalaz IDEA live templates working for the symbolic methods?

查看:131
本文介绍了如何让scalaz IDEA实时模板用于符号方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

scalaz 中的许多方法都具有符号unicode等价物,例如永远(当然,我的方法是错误的,符号方法确实有ASCII等价物。)

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).

该项目包含直播IDEA的模板XML文件因此可以自动完成,我相信使用 forever + TAB 快捷键(在上面)例如)。

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).

我无法弄清楚如何将这个实时模板导入IDEA并实际使用它。我该怎么做?

I can't figure out how to import this live template into IDEA and actually use it, though. How can I do that?

推荐答案

实时模板XML文件应放在IDEA配置目录下,模板子目录。

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

IDEA配置文件夹位置取决于您的平台:

IDEA configuration folder location would depend on your platform:


  • Windows: USERPROFILE \.IntelliJIdeaXX \ config

  • Linux:〜/ .IntelliJIdeaXX / config

  • Mac OS X:〜/ Library / Preferences / IntelliJIdeaXX

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

其中XX是IDEA版本(IDEA 9.x为90)。

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

确保在将XML复制到模板目录之前关闭IDEA。

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

这篇关于如何让scalaz IDEA实时模板用于符号方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆