开发者

IntelliJ plugin to print fields from any class

I am new to IntelliJ. Is there a plugin f开发者_StackOverflow中文版or IntelliJ where I can select a few fields and print them or create jsp form elements, etc. I know they have toString, equals, etc.


No, there's no plugin for doing that, and write a "proper plugin" will be hard.

But you can achieve something similar using "Live Templates" (at least for printing fields, Creating a JSP form is a different story)

IntelliJ comes with ready-to-use "Live Templates" like "soutv"...

So you type soutv in your java editor, then type Tab key and IntelliJ will generate a System.out.println("myField = " + myField) and you can choose what file to print.

Check the IntelliJ docs to know how to write your own Live Templates and see some examples.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜