Console Log X-Ray is a VS Code extension that helps developers quickly find and remove console.log statements before deploying their code. It highlights all console.log occurrences in red, making them easy to spot.
Features
Highlights all console.log statements in red.
Works in JavaScript and TypeScript files.
Helps maintain clean production-ready code.
Lightweight and efficient.
Installation
Open VS Code.
Go to the Extensions Marketplace (Ctrl+Shift+X or Cmd+Shift+X on Mac).
Search for Console Log X-Ray or click here to go directly to the extension.
Click Install.
Reload VS Code if necessary.
⚠️ First-time Installation Warning
Since this is the first time publishing this extension, you may see a "Do you trust this publisher?" pop-up when installing. Simply click "Trust" to proceed with the installation.
Usage
Open any JavaScript or TypeScript file.
All console.log statements will be highlighted in red automatically.
Review and remove unnecessary console.log statements before deployment.
Disabling the Extension Effect
If you want to temporarily disable the Console Log X-Ray effect without uninstalling the extension, simply reload the VS Code window:
Open Command Palette (Ctrl+Shift+P or Cmd+Shift+P on Mac).
Type "Reload Window" and select it.
The extension’s highlighting effect will be removed until again enable it.
This allows you to quickly toggle the effect without modifying any settings.
Configuration
No additional configuration is required. The extension works out of the box.
Contributing
If you’d like to contribute or report an issue, feel free to open an issue or submit a pull request in the repository.