views:

47

answers:

1

How do I get the intention "Create Field for Parameter" in IntelliJ to apply to all the parameters in a call instead of having to press through the list of keypresses for each and every parameter?

I have lots of calls with 10+ parameters that I get tired of having to do one by one and it would really help to be able to just have IntelliJ create all of the fields for me directly.

A: 

I fear you cannot use this intention in the desired way. I think, you should generate those fields. You can try using "Replace Structurally" Idea's tool, regexps or something else.

For info on using Replace Structurally see JetBrains Tutorial

Rorick

related questions