pawelgrzybek / snippet-generator

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

${variable_name} doesn't get properly escaped #68

Open marcsekz opened 2 years ago

marcsekz commented 2 years ago

When placing for example ${variable_name} inside a snippet, it should be escaped as \\${variable_name\\}, so that VScode doesn't think it's a placeholder in the snippet

For example for cortex debug, the following line is usually needed: "cwd": "${workspaceRoot}", With proper encoding: "\"cwd\": \"\\${workspaceRoot\\}\",",

nadavc-jfrog commented 2 years ago

2x