Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Fast-ConsoleLogNew to Visual Studio Code? Get it now.
Fast-ConsoleLog

Fast-ConsoleLog

liaofei

|
36 installs
| (1) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Fast-Console

一个通过快捷键快速插入打印语句的插件,目前只支持最常用的两种: console.log和console.dir,

语句插入位置根据使用方式不同而不同:

  • 复制打印: 插入位置为鼠标所在行的上一行或者下一行
  • 选中打印: 插入位置为选中文本的上一行或者下一行

使用步骤

  • 鼠标选中内容不为空,将在选中位置上一行/下一行插入打印语句
  • 鼠标选中内容为空,将在鼠标所在行的上一行或者下一行打印复制内容
  • 复制内容为空,将在鼠标所在行的上一行或者下一行插入空的打印语句

快捷键介绍

  • 选中要打印的变量 or 函数 or anything(未选中时插入空的打印语句)
  • 按中组合键:alt+1,表示在鼠标位置上一行插入打印语句console.log("$1:",$1)(Mac为cmd+1)
  • 按中组合键:alt+2,表示在鼠标位置下一行插入打印语句console.log("$1:",$1)(Mac为cmd+2)
  • 按中组合键: alt+shift+1,表示在鼠标位置上一行插入语句console.dir("$1:",$1)(Mac为cmd+shift+1)
  • 按中组合键: alt+shift+2,表示在鼠标位置下一行插入语句console.dir("$1:",$1)(Mac为cmd+shift+2)
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft