neild3r / vscode-php-docblocker

Simple docblocker for php
MIT License
94 stars 31 forks source link

What are the available variables? #237

Open smileBeda opened 1 year ago

smileBeda commented 1 year ago

The doc says that the php-docblocker.extra may be an array of extra tags to add to each DocBlock (These can include tabstops and snippet variables)

So I created

"php-docblocker.extra": [
        "myvar ${1:name}"
    ],

returns myvar Undefined variable

Is there a list somewhere of available variables?

The end goal in this case is to create a proper var tag that has this appearance @var [type] [name] [desc], or a (missing) access tag


Update

I realise these are not variables but placeholders. So the question I guess would be "how can we create our own dynamic placeholders or variables.