vscode console.log快捷键

在 Visual Studio Code 中,您可以使用快捷键「Ctrl + Shift + P」(Mac 用户请使用「Cmd + Shift + P」)打开命令面板,然后输入「Editor: Insert Console.log」即可快速插入「console.log」代码。此快捷键已内置于 Visual Studio Code 中,无需安装额外的插件。

配置文件

{
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// https://blog.csdn.net/ABB_818/article/details/124005658
“Print to log”: {
“prefix”: “log”,
“body”: [
“console.log(‘%c%s’, ‘color:#cb3a56’, ‘mingLog:–’ + ‘$1’);”
// “console.log(‘$1’);”,
“$2”
],
“description”: "Log output to "
}
}

相关推荐

  1. IDEA快捷使用-快捷键&模板

    2023-12-06 13:44:04       38 阅读
  2. markdown快捷键

    2023-12-06 13:44:04       35 阅读
  3. Bash快捷键

    2023-12-06 13:44:04       34 阅读
  4. IDEA快捷键

    2023-12-06 13:44:04       37 阅读
  5. Qt快捷键

    2023-12-06 13:44:04       31 阅读
  6. unity快捷键

    2023-12-06 13:44:04       12 阅读
  7. eclipse 快捷键

    2023-12-06 13:44:04       11 阅读

最近更新

  1. TCP协议是安全的吗?

    2023-12-06 13:44:04       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-06 13:44:04       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-06 13:44:04       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-06 13:44:04       18 阅读

热门阅读

  1. 云服务器究竟买什么配置?(常见配置解读)

    2023-12-06 13:44:04       39 阅读
  2. 关于input直接上传文件夹

    2023-12-06 13:44:04       35 阅读
  3. python获取透明图

    2023-12-06 13:44:04       29 阅读
  4. Docker tag 命令

    2023-12-06 13:44:04       40 阅读
  5. 首例CSDN_AI文章-- K-均值聚类算法

    2023-12-06 13:44:04       37 阅读
  6. 蓝桥杯ACwing习题

    2023-12-06 13:44:04       30 阅读
  7. 基于python实现人脸识别登录系统

    2023-12-06 13:44:04       32 阅读
  8. MySQL四 | 约束

    2023-12-06 13:44:04       36 阅读