IDEA already does something very similar:
SmartType Code Completion (Ctrl-Shift-Space).
If you invoke it after the "(", it will show all
variables in scope with the correct type and it
will automatically highlight the one that has the
same name as the formal parameter. All you need to
do is press tab or enter to insert it.
HTH.
-Thomas
> -----Original Message-----
> From: Givant, Alexander [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 28, 2001 2:15 PM
> To: '[EMAIL PROTECTED]'
> Subject: [Eap-features] Parameter auto complete feature
>
>
> Hi, guys!
>
> I enjoy IDEA a lot and going to recommend it to my boss as
> our standard Java
> IDE.
> So keep going the same way!
>
> Now the feature request: When I worked with Slick Edit (very powerful
> editor) I've mentioned
> following feature: if you declare function with parameters
> and than use same
> names for
> variable that you pass to the function, it'll auto complete parameters
> automatically for you.
>
> Let me explain what I mean:
> Suppose that you have function checkUser() with parameters
> String userID,
> String password.
>
> In you code you type:
> String userID = "user";
> String password = "password";
>
> int retCode = checkUser
>
> After that you open bracket for checkUser() function, IDEA
> will check what
> is a first parameter
> name and try to find parameter with the very same name and
> type. If the
> parameter found, IDEA
> will put it to function, prints "," after that and pass to second one.
>
> The advantages of this feature are:
> 1) You can speed up your development cycle;
> 2) *MORE IMPORTANT* You'll benefit by using same name for
> same parameters,
> this make code
> more readable and your laziness make you more productive.
>
> Alexander Givant,
> Blockade Systems Corp.
> phone: (416) 482-8400 x 2012
>
>
> _______________________________________________
> Eap-features mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-features
>
************************************
If this email is not intended for you, or you are not responsible for
the delivery of this message to the addressee, please note that this
message may contain ITT Privileged/Proprietary Information. In such
a case, you may not copy or deliver this message to anyone. You should
destroy this message and kindly notify the sender by reply email.
Information contained in this message that does not relate to the
business of ITT is neither endorsed by nor attributable to ITT.
************************************
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features