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

后端 未结 1 1166
说谎
说谎 2021-02-11 21:56

I want to create live template for setter.

I\'ve created this template \"enter

How

1条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-11 22:42

    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)
提交回复
热议问题