title: Wrap Selection Snippet on Visual Studio Code (vscode)
body: <p>I want to create an snippet when triggered it will surround the given text. Currently my snippet is:</p>
  
  <pre><code>{ 
    "Function Creator Helper": {
      "prefix": "_w",
      "body": [
        "public function $TM_SELECTED_TEXT () {",
        "  $1",
        "}",
      ],
      "description": "Creates a function given the text selection"
    }
  }
  </code></pre>
  
  <p>This results on:</p>
  
  <p><a href="https://i.stack.imgur.com/DXhf3.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/DXhf3.gif" alt="Wrapping snippet"></a></p>
  
  <p>What I do is:</p>
  
  <ol>
  <li>Select the text.</li>
  <li>Write the prefix (<code>_w</code>)</li>
  <li>Press Tab</li>
  </ol>
  
  <p>This results on:</p>
  
  <pre><code>public function  () {
  
  }
  </code></pre>
  
  <p>But I was expecting</p>
  
  <pre><code>public function person () {
  
  }
  </code></pre>
  
  <p>Any ideas on how can I make this snippet or how can I triggered it correctly?</p>