ConsoleBeGone is a highly efficient Visual Studio Code extension designed to enhance your coding experience, especially when dealing with JavaScript, TypeScript, JSX, and TSX files. This extension automatically detects console
log statements in your code and highlights them with distinct visual decorations. This feature assists developers in quickly identifying and removing debug lines before pushing the code to production, thereby maintaining clean and professional code quality.
- Automatic Detection: Instantly detects
console
log calls when you save JavaScript, TypeScript, JSX, and TSX files. - Visual Decorations: Highlights
console
log calls with a solid border and distinct background color to make them stand out in your code. - Workspace-wide Check: Includes a command
consolebegone.checkWorkspace
to check forconsole
log calls across your entire workspace, ensuring no debug line is left behind. - Customizable Appearance: Despite having a default styling, decorations can be customized to fit various themes or personal preferences.
- Installation: Simply install the extension from the Visual Studio Code Marketplace.
- On Save: The extension automatically highlights
console
log calls in your code upon saving files. - Manual Check: Use the command
consolebegone.checkWorkspace
from the Command Palette (Ctrl+Shift+P
orCmd+Shift+P
) to scan your entire workspace forconsole
log calls. - View Decorations: Once detected,
console
logs will be visually decorated, making them easy to identify.
ConsoleBeGone tackles the common issue of leftover console
logs in production code. It saves time and effort in code reviews and helps maintain a clean codebase, making it an essential tool for both individual developers and teams.
Your feedback is valuable in making ConsoleBeGone more effective. Feel free to contribute or report issues on our GitHub repository.