Search code examples
phpphpstorm

Is it possible to remove automatically generated comments when generating Getters and Setters in PhpStorm


Is it possible to change the settings in PhpStorm, so I get the function(s) without the comments? It's really unpleasant to remove all the comments when there are 20+ variables.

/**
* @return mixed
*/
public function getFoo() {
    return $this->foo;
}

Solution

  • Perferences->Editor->File and Code Templates->Code(tab)->PHP Getter Method/PHP Setter Method