Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Generating methods from unknown usages

$
0
0

I'm switching over from Eclipse, and things have been pretty smooth so far . One feature I use heavily in Eclipse is to call a nonexistent method on a class and use the Cmd + 1 hints to create the method I just called. Intellij has Alt + Enter for a similar hints dialogue, but it does not include the ability to create a nonexistent method. After searching google, this forum, and documentation, I did find this a blurb about a quick fix suggestion to do just this: http://www.jetbrains.com/idea/features/code_generation.html (Generating methods, constants, parameters from unknown usages). However when I try this in my ide, the quick fix popup claims it has no suggestions.

 

My goal:

foo.myNewMethod("bar", "baz");

hit magic keystroke

class Foo has myNewMethod defined

 

I'm on 12.1 CE on OSX, waiting for me UE license from IT . I tried to get quick fix to define a method internal to the class I'm in, like the example in the above link, and that also didnt work.

I'm writing Java with JDK 1.6 with imported maven projects.

 

Thanks for any help, tips, or insight!


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>