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

Update @var snippet to match spec

Open skoskie opened this issue 6 years ago • 1 comments

Spec: @var [“Type”] [$element_name] [<description>]

Current Snippet: @var ${1:mixed}

Proposed Snippet (untested): @var ${1:type} $${2:var_name} ${3:description}

skoskie avatar Mar 14 '19 16:03 skoskie

I am wondering why it is not possible to customise the var further than what is currently possible. It does not even accept custom strings, not to speak of variables.

The proposed snippet unfortunately does not work (as it is not supported) It just defaults to @var [type] YOUR_CUSTOM_DESC_STRING

@neild3r - any hint on how we can achieve it? I tried a bunch of stuff inclusive regex, which all simply does not work/is not accepted/considered by the var tag in the extension :(

smileBeda avatar Jul 02 '23 04:07 smileBeda