Extension that provides a tree view to easily find, navigate, and remove console statements from your project.
🌳 Tree View Interface - Browse all console statements organized by files
🔍 Smart Detection - Finds console.log, console.warn, console.error, console.info, and console.debug
🎯 Click to Navigate - Jump directly to any console statement in your code
🗑️ One-Click Removal - Remove individual console statements or all at once
⚡ Auto-Refresh - Tree updates automatically when you modify files
⚙️ Configurable - Customize file patterns and search patterns
Search for "Console Tree" in the Extensions panel or install directly from the VS Code Marketplace.
Search for "Console Tree" in the Extensions panel or install directly from Open VSX Registry.
git clone https://github.com/MarcosKlender/ConsoleTree.git
cd ConsoleTree
pnpm install
pnpm run compileThen press F5 to test the extension.
- Open a project in VSCode
- Click on the Console Tree icon in the Activity Bar (Sidebar)
- The tree view will show all
console statementsin your project organized by files - Navigate: Click on any console statement to jump to that line
- Remove individual: Click the trash icon next to any console statement
- Remove all: Click the trash icon in the tree view title bar
- Refresh: Click the refresh icon to manually update the tree
You can customize Console Tree in your VSCode Settings:
{
"consoleTree.includePatterns": [
"**/*.js",
"**/*.ts",
"**/*.jsx",
"**/*.tsx",
"**/*.vue",
"**/*.svelte"
],
"consoleTree.excludePatterns": [
"**/node_modules/**",
"**/dist/**",
"**/build/**",
"**/*.min.js"
],
"consoleTree.patterns": [
"console\\.log\\s*\\(",
"console\\.warn\\s*\\(",
"console\\.error\\s*\\(",
"console\\.info\\s*\\(",
"console\\.debug\\s*\\("
]
}- JavaScript (
.js,.mjs,.cjs) - TypeScript (
.ts) - React (
.jsx,.tsx) - Vue.js (
.vue) - Svelte (
.svelte)
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
If you find this extension helpful and give credits, it would be greatly appreciated! Feel free to:
- ⭐ Star this repository
- 🐛 Report issues or suggest improvements
- 💬 Share your experience with the extension
- 🚀 Enjoy coding without console clutter
- Inspired by the popular Todo Tree extension
- Made with ❤️ for the VS Code community!
