Netbeans 8 auto add author to method comment

When I print methods and generate comments via / ** enter. It generates a comment like this.

/**
* @param int $weight
* @return \KT_Forbes_Theme_Model
*/

      

Is it possible to automatically add @author?

/**
* @author A good guy
* @param int $weight
* @return \KT_Forbes_Theme_Model
*/

      

I need to add @autor manualy for the whole method, it is really anonymous.

+3


source to share


2 answers


This seems to be impossible in current versions of NetBeans, as stated at https://netbeans.org/bugzilla/show_bug.cgi?id=251426 . There are also some related posts about this issue Change Command / Template for Feature Commenting in NetBeans. Launch with "/ ** + Enter" or " Edit Comment Template in NetBeans PHP 6.8" (this latter does not solve the problem - at least in NetBeans 8.1).

I am currently struggling with an IDE to enable automatic comments with some data because the added comment looks like this:



/**
 *
 */

      

without any information.

+1


source


This output is usually given for void methods without parameters.
that is, public void parameterMapping ()

For methods with parameters and a return value, it should look like this:



/**
 *
 * @param parameter
 * @return
 */
private ASTNode recursiveParameterParser(ASTNode parameter)

      

0


source







All Articles