VSCode添加 console.log 快捷键

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+\

 

如果有用请关注我下~ 谢谢

posted @ 2019-10-24 15:39  hh9515  阅读(2707)  评论(0)    收藏  举报