A
A
agent11562016-09-14 17:50:38
Yii
agent1156, 2016-09-14 17:50:38

How to put comments in the model in phpstopme (hotkeys)?

public static function tableName()
{
return 'category';
}
/**
* @inheritdoc
*/
How to automatically post comments ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita, 2016-09-14
@bitver

I use alt + Enter - this is a drop-down menu that offers a solution to the problem (the cursor is anywhere in the function, except for those where there is an obvious error), then Enter. In general, the IDE itself says that it is wrong to keep the method without comments and itself suggests inserting PHPDoc.
And so everything is in the settings, find and configure as you like.

K
Kirill Arutyunov, 2016-09-14
@arutyunov

Start typing /** in front of the method and hit enter, which will generate the comment itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question