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 "

}

}

相关推荐
ABAP-張旺1 小时前
ABAP:Visual Studio Code官方插件安装教程
ide·vscode·编辑器
祖国的好青年3 小时前
Prettier实现保存自动格式化
vscode·react·prettier
zh路西法4 小时前
【绕过 vscode-server】用 SSHFS SFTP 实现本地远程开发
ide·vscode·编辑器
小二·4 小时前
AI 代码审查 VSCode 插件实战
ide·人工智能·vscode
嵌入式科普5 小时前
七、vscode四种调试方案完全指南
vscode·cortex-debug·probe-rs·ra8p1
2501_916007478 小时前
iOS 开发工具选择指南 从编辑器、编译器到自动化构建
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
韭菜钟8 小时前
将vscode的数据从C盘迁移至D盘
c语言·ide·vscode
九皇叔叔8 小时前
VSCode + Vue3 常用组件
ide·vscode·编辑器
云水-禅心8 小时前
Ubuntu22版本 的Android Studio 中中文搜狗输入法不跟随光标
ide·vscode·android studio
龙井>_<8 小时前
vsCode解决css代码补全不生效问题,UnoCSS插件失效修复
前端·css·ide·vscode