mardi 5 mai 2015

eclipse scala IDE doc - automatic insert of @param and @author tags

Hi I am looking how to add such tags automatically when i type /** on any class or methods. for example in java you automatically gets following when you type /** and press enter on method.

`   /**
     * 
     * @param str
     */
    public static void main(String[] str){}`

This doesn't happen with scala defs.

`/**
   * 
   */
  def main(args: Array[String]): Unit = {`

How do i achieve same effect in scala as java doc. I tried playing with template under Scala -> Editor -> Templates but that doesn't automatically adds anything when i type /** and hit enter.

Aucun commentaire:

Enregistrer un commentaire