Enable method creation where no method exists with params.
Issue #1325
duplicate
IntelliJ java has a feature where if you type in a name with brackets it will prompt you to create a method.
e.g:
Integer i = 1;
CustomClass myCustomClass = new CustomClass();
ConvertedClass myConvertedClass = convertCustomClassToConvertedClass(i, myCustomClass);
At the moment Webstorm/Intellij will just highlight with an error.
Would be good if it could on alt-enter give the following options:
- create instance method ( private ConvertedClass
convertCustomClassToConvertedClass(Integer i, CustomClass myCustomClass){}
- create static method (public static ConvertedClass
convertCustomClassToConvertedClass(Integer i, CustomClass myCustomClass){}
- create static method in helper class - creates new method in a new helper class (or gives option to select helper class).
Comments (3)
-
repo owner -
reporter Ah thanks sorry I didn’t do a search for multiple search terms (only searched method creation).
Yes a duplicate.
-
reporter - changed status to duplicate
Duplicate of
#976. - Log in to comment
Justin, a code intention for the unresolvable declaration inspection to create the missing declaration is on the roadmap:
https://bitbucket.org/RoseSilverSoftware/illuminatedcloud/wiki/Home
Look under Code inspections/intentions at the second item. If you feel that this is a duplicate of
#976, let's merge them.