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 "

}

}

相关推荐
Jackson@ML1 天前
2026最新版Visual Studio Code安装使用指南
ide·vscode·编辑器
狂放不羁霸1 天前
Tailscale | 校园网外笔记本借助校园网内主机连接实验室服务器
运维·服务器·vscode
土豆.exe1 天前
从自动修 Bug 到自主执行脚本:国产 AI 编辑器 IfAI v0.3.1 发布
人工智能·编辑器
New_Horizons6661 天前
VScode 无法使用shift + F12查看引用
ide·vscode·编辑器
tc&1 天前
VSCode远程连接AlmaLinux虚拟机问题总结
ide·vscode·编辑器
徐小夕@趣谈前端1 天前
【推荐】jitword协同文档新增AI公文助手,一键生成红头文件
vue.js·人工智能·开源·编辑器·github
claider1 天前
Vim User Manual 阅读笔记 usr_20.txt Typing command-line commands quickly 快速键入命令行命令
笔记·编辑器·vim
帅次1 天前
Sublime Text 快捷键完全指南
编辑器·sublime text
web守墓人1 天前
【编辑器】简单了解下vscode的go语言插件原理
ide·vscode·编辑器
事在人wёi1 天前
Vscode 大工程 C/C++插件无法跳转到原函数
vscode