ApexClass Template Variables

Issue #968 resolved
Jason Curry created an issue

We tried setting up some ApexClass templates, but we found that IC will only prompt for the name of the class. All of the additional variables in the template are left unchanged. Can IC be smart enough to prompt and fill in all of the variables from the selected template? Some of my developers are not transitioning to IntelliJ and IC before of this.

Comments (3)

  1. Scott Wells repo owner

    Yes and no. You can specify that your custom template allows for live templates and then can use the live templates syntax to add additional variables that can be tab-cycled immediately after the file is created from the template. For more details, see this doc:

    https://www.jetbrains.com/help/webstorm/settings-file-and-code-templates.html

    in particular the Enable Live Templates section.

    However, it is quite limited because of the issues described in issue #430 due to two distinct but incompatible concepts of file templates in the plugin SDK.

    I hope that helps!

  2. Log in to comment