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 "

}

}

相关推荐
广东帝工7 小时前
智慧航道:技术体系
编辑器
夏虫不可与之言冰15 小时前
第三课 点亮 LED 与定时器非阻塞闪烁
c语言·c++·vscode·单片机·嵌入式硬件·物联网
丑大王15 小时前
ultralytics 环境安装与正确使用Vscode
ide·yolo·编辑器
golang学习记16 小时前
Python vs Go:2026年到底该怎么选
java·vscode·python·golang·pycharm·goland
小云小白17 小时前
用 VSCode + Claude Code 搭一套专利编写 AI 辅助环境
vscode·ai写作·专利
coderSong256818 小时前
【Ubuntu】ctrl+shift+f 繁体中文切换、VScode全集搜索
linux·vscode·ubuntu
鸽芷咕19 小时前
把 SQL 编辑器用顺:KSQL Developer 从补全到事务的实战笔记
笔记·sql·编辑器
摇滚侠19 小时前
使用 VSCode 开发 Java 经验分享
java·经验分享·vscode
广东帝工19 小时前
智慧航道:建设路径
编辑器
哎写bug的程序员2 天前
关于VSCode上gcc,gdb的安装配置问题
ide·vscode·编辑器