title: How to auto-escape a special char in VS Code Snippets?
body: <p>I want to write a snippet for Debugging in TYPO3.</p>
  
  <p>This is my Snippet-Code in php.json file:</p>
  
  <pre><code>"TYPO3 Extbase DebuggerUtility": {
      "prefix": "ee",
      "body": [
          "\\TYPO3\\CMS\\Extbase\\Utility\\DebuggerUtility::var_dump($1,'$1');",
          "$0"
      ],
      "description": "TYPO3 Extbase DebuggerUtility"
  },
  </code></pre>
  
  <p>If I want to debug something liket this : <strong>$this->settings['key']</strong> I get this code:</p>
  
  <pre><code>\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($this-&gt;settings['key'],'$this-&gt;settings['key']');
  </code></pre>
  
  <p>But it should looks like this</p>
  
  <pre><code>\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($this-&gt;settings['key'],'$this-&gt;settings[\'key\']');
  </code></pre>
  
  <p>With escaped ' in the second part of that snippet.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Thank you, but I think you missunderstood the question.</p>
  
  <p>I don't want to escape a static character. I want to use the snippet and when I type the first $1-content it should be $this->settings['someKey'] <strong>but the second $1</strong> (which is near the same) should automatically escape the ' chars I write, that I don't do this manually by hand.</p>
  
  <p>So if i type ' 
  first $1: <code>'</code> second $1: <code>\'</code> that my Debug looks like this</p>
  
  <blockquote>
    <p>Debug:</p>
    
    <p>$this->settings['someKey']</p>
    
    <p>contentOfsomeKey</p>
  </blockquote>
  
  <p>I I don't escape the <strong>' signs</strong> inside the "title of the debug" it breaks the string because ' wraps the debug-title.</p>
  
  <p>In other words: I want to escape the content of the second $1 variable not the variable or the '-wrap in the snippet.</p>
  
  <p>I hope I could clarify my issue.</p>