Hi,
Is it possible in Ecilpse whereby the code completion feature puts the
arguments together with the method's name. For example, let say I have this
utility method:
public myClass {
public String myMethod(String arg1, String arg2);
}
When I choose myMethod by autocompletion, I want eclipse to put a predefined
code like the following line instead of just the method name:
myMethod("Type a id", "1970").
The reason is to help the programmer to save time in typing the arguments
when using certain utility methods.
Regard,
James Yong
Jeff Schwab - 28 Sep 2005 03:25 GMT
> Hi,
>
[quoted text clipped - 13 lines]
> The reason is to help the programmer to save time in typing the arguments
> when using certain utility methods.
The feature you want is the eclipse "template." See the online docs at
http://help.eclipse.org/help31/index.jsp
and search for the sections called "Templates" and "Writing your own
templates."
James Yong - 28 Sep 2005 05:14 GMT
> > Hi,
> >
[quoted text clipped - 20 lines]
> and search for the sections called "Templates" and "Writing your own
> templates."
Thanks Jeff. I will make a study of it. Cheers!