yatki / vscode-surround

🔥 A simple yet powerful extension to add wrapper templates around your code blocks
https://marketplace.visualstudio.com/items?itemName=yatki.vscode-surround
MIT License
899 stars 40 forks source link

How do I use $_GET[ #101

Closed ionultd closed 11 months ago

ionultd commented 1 year ago

Great addon BTW.

How do I use $_GET[

"snippet": "if($_GET['debug']==1){\n$TM_SELECTED_TEXT\n};$0",

yatki commented 11 months ago

I think you need to escape the $ sign. Try to use "snippet": "if(\$_GET['debug']==1){\n$TM_SELECTED_TEXT\n};$0",