Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>console-prefixerNew to Visual Studio Code? Get it now.
console-prefixer

console-prefixer

Preview

Maniteja Pratha

|
5 installs
| (0) | Free
Automatically adds a prefix to console logs
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Console Log Prefixer

Automatically add prefixes to console.log statements in JavaScript and TypeScript files based on special comments.

Features

  • Automatically adds prefixes to console.log statements that have a special comment above them
  • Automatically removes prefixes when comments are removed
  • Makes filtering logs in browser console easy
  • Works with JavaScript, TypeScript, JSX, and TSX files

Usage

Add a special comment above any console.log statement you want to prefix:

// mylog:
console.log("This will get a prefix");
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft