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 "

}

}

相关推荐
谱写秋天5 小时前
Qt 5.5 的安装与配置(使用 VSCode编辑)
开发语言·vscode·qt
骑着毛驴数星星17 小时前
CANDB++中的CAN_DBC快速编辑方法,使用文本编辑器(如notepad++和VScode)
vscode·can
weixin_307779131 天前
VS Code配置MinGW64编译Ipopt库
开发语言·c++·vscode·算法
weixin_307779131 天前
VS Code配置MinGW64编译backward库
开发语言·c++·vscode·算法
QL.ql2 天前
vscode的ws环境,esp32s3连接wifi
ide·vscode·编辑器
_错错错2 天前
Vim 常用快捷键及插件
编辑器·vim·linux 开发工具
大白同学4212 天前
【Linux】编辑器vim的使用
linux·编辑器·vim
Hyvial2 天前
VsCode 使用指南(配置 + 美化)
vscode
星火飞码iFlyCode2 天前
真实案例 | 如何用iFlyCode开发Webpack插件?
java·python·编辑器
十秒耿直拆包选手2 天前
IDE:vscode的vue3模板
javascript·ide·vscode