fastcodejava
fastcodejava

Reputation: 41087

IntelliJ plugin to print fields from any class

I am new to IntelliJ. Is there a plugin for IntelliJ where I can select a few fields and print them or create jsp form elements, etc. I know they have toString, equals, etc.

Upvotes: 0

Views: 425

Answers (1)

Mario Arias
Mario Arias

Reputation: 176

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.

Upvotes: 1

Related Questions