VScode使用小技巧

代码片段快捷键设置

设置位置:文件—首选项—用户代码片段----搜 javaScript ,进入JavaScript.json,自定义快捷键(setting → Configure User Snippets → JavaScripts.json)

例: log 快速输入console.log()

"Print to console": {
  "prefix": "log",
  "body": [
   "console.log('$1')"
  ],
  "description": "Log output to console"
 }

你可能感兴趣的:(vscode,javascript,前端)