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 "

}

}

相关推荐
Zach_yuan1 天前
Linux编辑器vim
linux·编辑器·vim
dyxal1 天前
内网windows系统机器通过vscode ssh连接内网服务器,无网络导致的一系列无法正常连接问题
服务器·vscode·ssh
狠活科技1 天前
免登录!免安装ClI,Claude Code官方插件接入API使用教程
人工智能·vscode·ai编程
诗意地回家2 天前
工具: 下载vscode .vsix扩展文件方法
ide·vscode·编辑器
UpYoung!2 天前
无广技术贴!【PDF编辑器】Solid Converter PDF保姆级图文下载安装指南——实用推荐之PDF编辑软件
学习·数学建模·pdf·编辑器·运维开发·个人开发
东方佑2 天前
基于浏览器的DOCX文件编辑器:实现导入、编辑与导出功能
编辑器
scorpion_V2 天前
VScode 中执行 npm 报错的问题
ide·vscode·npm
UpYoung!2 天前
【MD编辑器】实用工具推荐之轻量级 Markdown 编辑器Typora下载安装图文教程
编辑器·办公软件·typora·md编辑器·markdown 编辑器
曹申阳2 天前
1. 使用VSCode开发uni-app环境搭建
ide·vscode·uni-app
每天更新3 天前
VSCODE 使用GDB
ide·vscode·编辑器