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 "

}

}

相关推荐
初遇你时动了情6 小时前
flutter vscode 终端无法使用fvm 版本切换、项目运行
ide·vscode·flutter
xxxxxue7 小时前
VS Code 隐藏顶部标题栏中间的文字
vscode·隐藏·标题栏
Aldrich_3214 小时前
蓝桥杯嵌入式赛道—-软件篇(GPIO输出模式配置)
c语言·vscode·stm32·单片机·嵌入式硬件·蓝桥杯
NKelly1 天前
neovim等模态编辑器最优雅的输入法解决方案
运维·编辑器·vim·yaml
hoo3431 天前
【Typora】!Markdown 编辑器详细安装教程,高效上手
linux·编辑器
应茶茶1 天前
VsCode通过SSH远程连接云服务器遇到主机密钥变更问题
服务器·vscode·ssh
小龙报1 天前
《VScode搭建教程(附安装包)--- 开启你的编程之旅》
c语言·c++·ide·vscode·单片机·物联网·编辑器
buvsvdp50059ac2 天前
如何在VSCode中设置Python解释器?
ide·vscode·python
_OP_CHEN2 天前
Linux网络编程:(七)Vim 编辑器完全指南:从入门到精通的全方位实战教程
linux·运维·服务器·编辑器·vim·linux生态·linux软件
天天向上10242 天前
VueUse的使用
前端·vue.js·vscode