live_templates examples not working in PyCharm

Hi All,

I downloaded the live_templates examples, build it via "gradlew build", then loaded the live_templates-2.0.0.zip file in my PyCharm. Sofar it looks OK.

Now when I'm trying to use the TitleCaseMacro, nothing happens. I'm test it as follows:

  1. created a markdown file (.md)
  2. typed some text
  3. selected the text
  4. invoke the live templates.

It then shows "No surround templates defined in this context" 

Running PyCharm 2021.2.3

I hope someone can give me some pointers. Many thanks!

0
3 comments

Hi, 

Do you see the newly added live templates in "Preferences | Editor | Live Templates" ?

Could you please give a link to the instructions you followed to add the templates from the zip file?

0

Hi,

When I run:

gradlew runIde

I see do that folder. But, when iI install the zip in PyCharm it does not. However the plugin is installed (according to the checkbox), also didn't gave any error message.

I suspect maybe the plugin needs to be signed? I actually just want to build a simple plugin -private use- that I can use to make live a bit easier for one of my projects. No need to publish anything.

To build the plugin I did the following:

  1. cd ./intellij-sdk-code-samples-main/live_templates
  2. ./gradlew buildPlugin (runs without any errors)
  3. Start PyCharm, Preferences | Plugins
  4. Then in the "config" icon, "Install Plugin from Disk" and I select the ./build/distributions/live_templates-2.0.0.zip file
  5. Its shows as "Installed"
  6. When I then goto the "Live Templates", I don't see the templates being installed (also tried restart the IDE)
0

Ah, so this is a custom plugin. If it's a third-party plugin, I'd recommend contacting the developer.

If this is your plugin, you can ask the question at the forum dedicated to plugin development: https://intellij-support.jetbrains.com/hc/en-us/community/topics/200366979-IntelliJ-IDEA-Open-API-and-Plugin-Development

0

Please sign in to leave a comment.