Search code examples
intellij-idealive-templates

Print javascript's method name in IDEA live template


In IDEA there is live template soutm which prints method name in Java files.

Can I define such live template for javascript and typescript files in IDEA?


Solution

  • You can use jsClassName() and jsMethodName() built-in functions for this:

    enter image description here