vscode设置console.log快捷键

文件-首选项-用户片段-javascript.json

输入以下配置

  "Print to console": {
    "prefix": "c",
    "body": ["console.log($1)"],
    "description": "输入c按下回车,生成console.log()"
  }

posted @ 2022-02-15 21:47  吴小明-  阅读(303)  评论(0编辑  收藏  举报