Downloaded Live Template Not Showing Up

已回答

I found a repo online of some eruby snippets I'd like to use.

According to the docs the templates folder holds our own live templates (snippets). I created the relevant templates folder and added the xml file. Restarting IntelliJ IDEA doesn't show it in the settings, and can't use the shortcuts in an erb file.

~/Library/Preferences/IntelliJIdea2018.2/templates

templates
└── eruby.xml

0

Works fine for me:

Make sure you have copied it to the correct directory. For me it is "/Users/Andrey/Library/Preferences/IntelliJIdea2018.2/templates/eruby.xml"

0

Thanks for confirming it at least works Andrey. That is the exact same path I used for the xml file too... I wonder if it makes a difference if I used the Toolbox App to install IntelliJ IDEA. 

 

0

Interesting I just found this comment on the FAQ of the Toolbox App. I did have to create the templates folder as it wasn't there.

0

You can check the settings in Toolbox:

0

First place I checked too. This is a new install of Toolbox App and IntelliJ IDEA yesterday.

0

I removed all Intellij apps I had installed (Toolbox, IDEA, Datagrip). Deleted all Preferences, Caches and plists. Re-installed Tooldbox and relevant apps and it seems to be working now. I'm really not sure why it wasn't before. Thanks for helping though Andrey.

0

请先登录再写评论。