pawelgrzybek / snippet-generator

Snippet generator for Visual Studio Code, Sublime Text and Atom
https://snippet-generator.app/
1.74k stars 202 forks source link

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

Open montejunto opened 6 years ago

montejunto commented 6 years ago

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

pawelgrzybek commented 5 years ago

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.