Wrap Selection Snippet on Visual Studio Code (vscode)

后端 未结 6 2026
暖寄归人
暖寄归人 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 06:52

    The currently selected text is exposed as ${TM_SELECTED_TEXT}, not $TM_SELECTED_TEXT.

    edit: As commented below, this is not the case for this particular use-case

提交回复
热议问题