开发者

IntelliJ plugin to print fields from any class

开发者 https://www.devze.com 2023-02-02 03:37 出处:网络
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.N

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

精彩评论

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

关注公众号