snippet-generator icon indicating copy to clipboard operation
snippet-generator copied to clipboard

Adding a variable for php for Visual Code looses the dollar sign

Open montejunto opened this issue 7 years ago • 1 comments

If passing $variable it should provide \$variable or else it will show "variable" instead of "$variable" on visual Code.

montejunto avatar May 18 '18 16:05 montejunto

Hi.

Because VS Code snippets ate using $ for placeholders same like variable declaration in PHP this functionality will be tricky to add without some RegEx magic (I am not good at RegEx).

I am more than happy to accept your PR tho :)

Thanks for reporting.

pawelgrzybek avatar Aug 08 '18 07:08 pawelgrzybek