How to use variable value in live templates in Intellij IDEA?

后端 未结 1 721
长情又很酷
长情又很酷 2021-02-11 22:04

I want to create live template for setter.

I\'ve created this template \"enter

How

1条回答
  •  别跟我提以往
    2021-02-11 22:37

    You can use the soutv as an example, notice how it defines a copy of a variable:

    copy

    It's also possible to define custom expression for live templates via plugins or Groovy code: How can i add custom expression functions for Live templates in Intellij.

    0 讨论(0)
提交回复
热议问题