Wrap Selection Snippet on Visual Studio Code (vscode)

后端 未结 6 1999
暖寄归人
暖寄归人 2020-12-31 06:33

I want to create an snippet when triggered it will surround the given text. Currently my snippet is:

{ 
  \"Function Creator Helper\": {
    \"prefix\": \"_w         


        
6条回答
  •  粉色の甜心
    2020-12-31 07:03

    from Mitches example:

    "JS Block Quote": {
        "prefix": "c2",
        "body": [
            "/* $TM_SELECTED_TEXT */",
        ],
        "description": "JS Block Quote" }
    

    from the article: https://code.visualstudio.com/docs/editor/userdefinedsnippets#_variables the docs must have been ahead of the release.

    This works fine in vscode v1.30.2

提交回复
热议问题