Search code examples
intellij-ideakeymaps

Alt+Enter stopped showing Create Method in IntelliJ Community Edition


I am using IntelliJ Community Edition ( 2019.2 version ). Since this morning, when I type a method call with parameters and click Alt+Enter, it doesn't show me the option to create the method - I do not know what I may have done that I lost this functionality and have been unable to find out how to get the functionality back. What do I need to do?

Hope there is a solution to this.

@crazycoder - Attaching image enter image description here

Thanks


Solution

  • There is a syntax issue in the code, try removing the String part in the method arguments list as you don't need to specify the type when calling a method.