Skip to content

Instantly share code, notes, and snippets.

@xiaolai
Created October 17, 2021 07:05
Show Gist options
  • Save xiaolai/a72f2d9f264f9d7b1e11d93ef8e0d372 to your computer and use it in GitHub Desktop.
Save xiaolai/a72f2d9f264f9d7b1e11d93ef8e0d372 to your computer and use it in GitHub Desktop.
VSCode enclose selection with unicode braces.md
[
{
"key": "ctrl+shift+'",
"command": "editor.action.insertSnippet",
"args": {"snippet": "“$TM_SELECTED_TEXT$0”"},
"when": "editorTextFocus&&editorHasSelection"
},
{
"key": "ctrl+'",
"command": "editor.action.insertSnippet",
"args": {"snippet": "‘$TM_SELECTED_TEXT$0’"},
"when": "editorTextFocus&&editorHasSelection"
},
{
"key": "ctrl+shift+[Backslash]",
"command": "editor.action.insertSnippet",
"args": {"snippet": "【$TM_SELECTED_TEXT$0】"},
"when": "editorTextFocus&&editorHasSelection"
},
{
"key": "ctrl+shift+,",
"command": "editor.action.insertSnippet",
"args": {"snippet": "《$TM_SELECTED_TEXT$0》"},
"when": "editorTextFocus&&editorHasSelection"
},
{
"key": "ctrl+shift+[BracketRight]",
"command": "editor.action.insertSnippet",
"args": {"snippet": "「$TM_SELECTED_TEXT$0」"},
"when": "editorTextFocus&&editorHasSelection"
},
{
"key": "ctrl+shift+[BracketLeft]",
"command": "editor.action.insertSnippet",
"args": {"snippet": "『$TM_SELECTED_TEXT$0』"},
"when": "editorTextFocus&&editorHasSelection"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment