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 "

}

}

相关推荐
沐沐森的故事19 分钟前
在Unity编辑器中实现组件的复制与粘贴:完整指南
unity·编辑器·组件删除·组件复制·组件粘贴·copy component·paste component
西瓜有点饿8 小时前
关于VSCode里需要用的一些插件总结
vscode·编辑器
WZF-Sang10 小时前
Linux工具的使用——yum和vim的理解和使用
linux·运维·服务器·开发语言·学习·编辑器·vim
难搞靓仔10 小时前
在VSCode中编写Html
vscode·html·html5
luckyxiev512 小时前
工作笔记20240927——vscode + jlink调试
ide·笔记·vscode
wdh383712 小时前
vscode+stfp插件,实现远程自动同步文件&代码
ide·vscode·编辑器
yj爆裂鼓手14 小时前
unity一键注释日志和反注释日志
unity·c#·编辑器
追逐远方的梦14 小时前
Julia的安装和使用(附vscode中使用)
开发语言·vscode·julia
我命由我1234517 小时前
7.使用 VSCode 过程中的英语积累 - Terminal 菜单(每一次重点积累 5 个单词)
前端·ide·笔记·vscode·学习·编辑器·学习方法
萌新源1 天前
VS2022 Git功能的使用
git·vscode