Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Prefix LogNew to Visual Studio Code? Get it now.
Prefix Log

Prefix Log

jiangzupei

|
31 installs
| (0) | Free
log加入前缀
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PrefixLog README

Features

const text = 'my_text';

打印text这个变量有这几种方式:

1.选中文字后(或者将光标置于text右侧会自动帮您选中text)单击右键,选择prefixLog

2.选中文字后(或者将光标置于text右侧会自动帮您选中text),按快捷键 shift + cmd + c 或者 shift + alt + c

3.输入text.plog 会在下一行帮您快捷生成

console.log('text', Object.prototype.toString.call(text).split(' ')[1].split(']')[0], '===', text);

输出结果: 'text' String === my_text

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft