xylo/intellij-postfix-templates

PHP postfix templates blank in settings

dj1020 opened this issue · 2 comments

image

I have tried to reinstall the plugin.

Also tried to remove /Users/{me}/Library/Application Support/JetBrains/Toolbox/apps/PhpStorm/ch-0/211.7142.44/PhpStorm.app.plugins/intellij-postfix-templates_templates and reinstall the plugin

Tried both PhpStorm version: 211.7142.44 (2021.1.2) and (2021.1.3)

and the plugin version is 212.0.211

All the same, nothing in the 'before' and the 'after' window.

but it still working.

xylo commented

The "before" and "after" text areas are automatically filled in by Intellij IDEA when IDEA loads a statically defined postfix completion template from a plugin. However, this does not really work for plugins (such as Custom Postfix Templates) which load postfix completion templates at runtime. But in your case you should at least see the text

// this is a custom template defined by the user
// see "Custom Postfix Templates" for template definition

It's unclear to me why this isn't the case in your case.

If you want to see which templates are defined by Custom Postfix Templates and how they are defined, take a look at Editor->"Custom Postfix Templates" in the settings dialog.

xylo commented

But the fact that "before" and "after" are blank is indeed a bug. Unfortunately, I cannot reproduce it. :( Maybe it only appears on Macs.