How to configure created javadoc stubs?

In Netbeans, when you type /**above a method, it generates a javadoc stub:

/**
 * 
 * @param 
 * @return 
 */

How do you customize the generated text? I would like a custom javadoc stub to look like this:

/**  Author = {author}
 *  
 * My custom text  
 * 
 * @param 
 * @return 
 */

Note: this is a method, not a class, that uses class templates.

search terms: netbeans javadoc template stub custom autocomplete

+5
source share
1 answer

This will not replace functioning /**, but it will give you an alternative.

  • Go to Tools, Options,
  • Go to the tab Edit, Code Templates,
  • From the drop down language, make sure Java is selected,
  • press New,
  • ( jdt javadoc),
  • OK,
  • javadoc, . : : , .

, :

/**
 * @author
 * 
 * @param
 * @return
 */

:

/**
 * @author
 * 
 * @param @return
 */

:

/**
 * @author
 * 
 * @param
 *
 * @return
 */

:

/**
 * @author
 * 
 * @param
 *
 * @return
 */

. , , " :" , - . - . . OK.

, , /** jdt, Expand template (, ..), .

+3

All Articles