Project Structure Generator
A simple VS Code extension that generates and saves your project's folder structure to a text file.
Features
- Right-click Integration: Right-click any folder in Explorer to generate its structure
- Command Palette: Use
Ctrl+Shift+P → "Generate Project Structure"
- Smart Filtering: Automatically ignores common files like
node_modules , .git , build folders
- File Size Info: Shows file sizes in KB for better understanding
- Tree Structure: Beautiful tree visualization with proper formatting
- Error Handling: Gracefully handles permission errors and missing folders
Usage
- Right-click on any folder in the Explorer panel
- Select "Generate Project Structure"
- The structure will be saved as
project-structure.txt in the selected folder
Method 2: Command Palette
- Press
Ctrl+Shift+P (or Cmd+Shift+P on Mac)
- Type "Generate Project Structure"
- Press Enter
- The structure will be saved in your workspace root
Example Output
├── src/
│ ├── components/
│ │ ├── Header.tsx (2.3 KB)
│ │ └── Footer.tsx (1.8 KB)
│ ├── utils/
│ │ └── helpers.ts (0.9 KB)
│ └── index.ts (0.5 KB)
├── package.json (1.2 KB)
└── README.md (0.8 KB)
What Gets Ignored
The extension automatically ignores common files and folders:
- Hidden files (starting with
. )
node_modules
- Build folders (
dist , build , out , target )
- Version control (
.git )
- IDE files (
.vscode , .idea )
- Log files and temporary files
- OS-specific files (
Thumbs.db , .DS_Store )
Requirements
Release Notes
0.0.1
- Initial release
- Basic project structure generation
- Context menu and command palette integration
Contributing
Found a bug or have a feature request? Please open an issue on GitHub.
License
MIT License
| |