Console Tree

Extension that provides a tree view to easily find, navigate, and remove console statements from your project.

Table of Contents
- Features
-
Installation
- Usage
- Configuration
- Supported File Types
- Contributing
- License
- Acknowledgments
Features
🌳 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
Back to top ⬆️
Installation
From VS Code Marketplace
- Open Visual Studio Code
- Go to Extensions
(Ctrl + Shift + X / Cmd + Shift + X)
- Search for "Console Tree"
- Click Install
From Source
git clone https://github.com/MarcosKlender/ConsoleTree.git
cd ConsoleTree
pnpm install
pnpm run compile
Then press F5 to test the extension.
Back to top ⬆️
Usage
- Open a project in VSCode
- Click on the Console Tree icon in the Activity Bar (Sidebar)
- The tree view will show all
console statements in 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
Back to top ⬆️
Configuration
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*\\("
]
}
Back to top ⬆️
Supported File Types
- JavaScript (
.js, .mjs, .cjs)
- TypeScript (
.ts)
- React (
.jsx, .tsx)
- Vue.js (
.vue)
- Svelte (
.svelte)
Back to top ⬆️
Contributing
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
Back to top ⬆️
License
This project is licensed under the MIT License - see the LICENSE file for details.
Back to top ⬆️
Acknowledgments
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
Back to top ⬆️