Bojan Radaković
Bojan Radaković

Reputation: 440

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;
}

Upvotes: 17

Views: 3443

Answers (2)

some_guy
some_guy

Reputation: 390

In 2023 it would be Editor -> Intentions -> PHP, and then uncheck

"Generate PHPDoc"

Upvotes: -1

omxv
omxv

Reputation: 646

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

Upvotes: 32

Related Questions