vscode-php-docblocker icon indicating copy to clipboard operation
vscode-php-docblocker copied to clipboard

can't find class name

Open marlonfan opened this issue 8 years ago • 8 comments

There is no perception class name, function name and property name.

But thank you very much for this plugin, Looking forward to for a long time.

image

marlonfan avatar Mar 15 '17 09:03 marlonfan

@MarlonFan thanks for your feedback on this. Really appreciate it.

The reason I left it as not inferring class names is simply because I find if it does, people will be less inclined to actually write a meaningful comment block. Then you end up with a class of meaningless DocBlocks. Technically the regex does already know the class name. Perhaps we can support both approaches and provide this as an option.

neild3r avatar Mar 15 '17 09:03 neild3r

@neild3r I understand, will carry on the plan?

marlonfan avatar Mar 15 '17 09:03 marlonfan

If I was to implement this as an option you can turn on what format would you like for the class name initial message?

neild3r avatar Mar 15 '17 09:03 neild3r

May be like this? Just a suggestion。 image

marlonfan avatar Mar 15 '17 10:03 marlonfan

And would service\ come from the namespace or would that be a tabstopped placeholder?

Also note I've added @package to the completion list in the next release, see #2

neild3r avatar Mar 15 '17 10:03 neild3r

Cool, didn't see before.

marlonfan avatar Mar 15 '17 10:03 marlonfan

This introduces another problem: image I usually have in the package-annotation the full class name, except the last part, because that's reserved for subpackage

jens1o avatar May 26 '17 10:05 jens1o

@neild3r is there a way to auto fill the function name to the comment block ?

ctf0 avatar Nov 10 '19 16:11 ctf0