Super Completion

Do you often find yourself calling a super method with a large number of parameters? Typing all those arguments one by one is soooooo boring, isn’t it?! Don’t be upset anymore — latest Maia EAP can rescue you. Just use Smart Completion (Ctrl+Shift+Space):

This entry was posted in New Features and tagged , , . Bookmark the permalink.

5 Responses to Super Completion

  1. Stephen Friedrich says:

    Please make it work with delegation, too!

    IMHO it should even work in any case where the called method has the same signature as the current method.

  2. Peter Gromov says:

    Stephen, done!

  3. Eugene Kirpichov says:

    How about supporting the case where the called method has a signature that is a superset of the current method’s signature, possibly with respect to subtyping in parameters? (the user would then be left to fill in the missing arguments) For example, ‘this(..)’ constructor delegation.

  4. Peter Gromov says:

    Eugene,

    I think that the current behavior should remain unchanged. As for superset, subtyping and others, we can provide such variants on second smart completion in the same place. It could also fill unknown arguments with formal parameter names, like Eclipse does. We could also run live template for all the parameters. The same could be done when completing method name in a call, though it seems a bit controversial. I’m not sure which subset of these features is really worth implementing. Every variant has its disadvantages.

  5. IL says:

    Can you make it (code complete) auto without press shortcut?
    Visual Studio 2008 do it that way.

    And “quick document lookup”, eclipse shows the doc on the fly.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">