Very cool, thank you, this will save me some time.

Ted Hill

"Jonas Kvarnstr�m" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Ted Hill wrote:
> > Will it be possible to extend SmartType capabilities to JavaDoc so that
we
> > can use code completion within a comment rather than having to type out
> > variable names? I like to use relatively long identifier names, so I
> > generally wind up doing a lot of typing in the comments. SmartType saves
me
> > time in the code but not in the comments.
>
> Although SmartType completion does not work there, you can use
> LiveTemplates as a workaround.
>
> Just write a simple LiveTemplate called "var", where the text is "$VAR$"
> and the expression for VAR is variableOfType("").  Set the template to
> be active in Java comments.  Then you can simply type "var<TAB>"
> anywhere in the javadoc and choose the variable name from the dropdown
box.
>
> Note:  For some reason, true and false are also in the dropdown list.
> Is this a bug?
>


_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features

Reply via email to