1. 打开vscode,选择文件–首选项–用户代码片段
  2. 选择javascript类型,打开javascript.json文件
  3. 按照操作,设置快捷输入
  4. {
        "Print to console": {
                "prefix": "cl",
                "body": [
                    "console.log('$1');",
                ],
                "description": "Log output to console"
            }
    }

     

相关文章:

  • 2022-01-21
  • 2021-07-12
  • 2022-01-31
  • 2021-08-26
  • 2021-12-14
  • 2022-12-23
  • 2021-08-13
  • 2021-06-12
猜你喜欢
  • 2021-10-11
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
相关资源
相似解决方案