Yes, this sounds useful.

I can imagine following behaviour. You have a method

  public boolean containsName(String name)
  {
  }

If you start typing the /** before the method and hit <Enter>, IDEA could 
complete it to:

  /**
   * |
   * @param name
   * @return
   */
  public boolean containsName(String name)
  {
  }

For the future:
If you rename the parameter "name" to "foo", than the @param should be 
adjusted, too. I even believe, that this need not to become an option. It 
makes sense, to always rename the @param entry.

Best regards
Thomas Singer

At 12:15 28.11.01 +0100, you wrote:
>i would prefer the javadoc comment generation, like the following
>
>          /**
>           * @param java.lang.String name
>           * @return boolean
>           */
>          public boolean containsName(String name)
>          {
>                ...
>          }
>
>it has to generate empty javadoc comment blocks
>with nothing inside, only the information about return and params.
>maybe the action for generating this can be, with an dialog box, where
>you can specify the methods that u want to comment
>and the assistant will generate the javadoc comments.
>
>regards, ercano
>
> > That's a feature, Netbeans has, isn't it. I don't like it, because it
> > produces useless comments like the following:
> >
> >         /** Holds value of property noTags.
> >          */
> >         private boolean noTags;
> >
> >         /** Getter for property noTags
> >          * @return Value of property noTags.
> >          */
> >         public boolean isNoTags() {
> >                 return noTags;
> >         }
> >
> >         /** Setter for property noTags
> >          * @param noTags New value of property noTags.
> >          */
> >         public void setNoTags(boolean noTags) {
> >                 this.noTags = noTags;
> >         }
> >
> > I would rather like to see an assistant (comment-completion or dialog --
> > does not matter), that *helps* you writing comments. But it definitely
> > should *not* write comments automatically.
> >
> > Best regards
> > Thomas Singer
>
>_______________________________________________
>Eap-features mailing list
>[EMAIL PROTECTED]
>http://www.intellij.com/mailman/listinfo/eap-features


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

Reply via email to