file - preferences - keyboard shortcuts - keybindings.json:
添加:
{
"key": "ctrl+l",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "console.log(${TM_SELECTED_TEXT}$1)$2"
}
}
附:
vscode中快速移动至标签结尾
Mac Cmd+Shift+\
Windows Ctrl+Shift+\
如果有用请关注我下~ 谢谢