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

 

如果有用請關注我下~ 謝謝


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM