Console Counter 📟
Insert, count, and remove console.log statements automatically in JavaScript/TypeScript files — with instant keyboard shortcuts to keep your codebase clean and production-ready.
🚀 What is Console Counter?
Console Counter is a lightweight VS Code extension that helps you count and remove all console statements in your current file.
No more manual searching or deleting logs — just one shortcut and you're done. ⚡
✨ Features at a Glance
✔️ Count Console Logs – Instantly see how many console statements exist in the current file.
✔️ Remove All Console Logs – Clean your file from all console statements in one shortcut.
✔️ File-Specific Context – Results always show the file name for better clarity.
✔️ Smart Handling – If no console statements are found, you get a friendly notification.
✔️ Keyboard Shortcuts – Super quick commands for count and remove.
🎹 Keyboard Shortcuts
| Action |
Shortcut |
Description |
| Count Consoles |
Alt+T |
Shows the number of console statements in the current file |
| Remove Consoles |
Alt+R |
Removes all console statements in the current file |
🖼️ Screenshots
👉 Counting Consoles
📟 Console Count: 5 : PostPreview.jsx
👉 Removing Consoles
🧹 PostPreview.jsx : All console logs removed!
👉 No Consoles Found
❌ No console logs found in PostPreview.jsx
vsce publish patch
🔧 Configuration & Customization
Currently, Console Counter is zero-config — it works out of the box.
In future updates, you’ll be able to:
✅ Customize which console methods to track (log, warn, error, etc.)
✅ Change keyboard shortcuts
✅ Ignore specific files/folders
💼 Why Console Counter?
While debugging, console.log is your best friend — but in production, it’s your enemy.
This extension helps you keep your project clean with one tap instead of manual cleanup. 🧹
📖 Changelog
v0.0.1
- Initial release 🎉
- Added count and remove features with shortcuts.
- Smart notification when no consoles are found.
💙 Support
Console Counter is open-source and built with ❤️ for developers.
If you enjoy using it, please ⭐ the repository and share it with your dev friends.
Feel free to reach out or follow me on these platforms:
📜 License
Released under the MIT License.
Free to use for personal and commercial projects.