Search code examples
javaintellij-ideaconstructorautocomplete

Auto fill stub parameters for constructors in Intellij


Does Intellij have any way of auto-creating constructor calls, based on the parameters from the constructor's signature?

The idea is that I type the name of class (constructor name), hit Magic+Key+Combination, choose the relevant constructor, and IntelliJ types in all the parameters, based on the names in the constructor's signature. Obviously, in most cases, that wouldn't compile but that's OK, as I will create the required parameters with the appropriate names.

An even better idea would be for the feature to also create the parameter definitions for me, right above the constructor call.

Any Idea?


Solution

  • According to JetBrains support, this feature is not supported (current latest version of IntelliJ is 14.1).