Skip to content

ShreyPurohit/folder-structure-pro-vscode

Repository files navigation

Folder Structure Pro

Marketplace Version Downloads Ratings

πŸš€ The ultimate Extension for managing folder structures with ease!


Table of Contents


Features

Folder Structure Pro Features

πŸ“ Copy Folder Structure

  • 🎯 Two Output Formats: JSON & Plain Text (GitIngest-style tree)
  • πŸ–±οΈ Right-Click Integration: Easy access from Explorer context menu
  • πŸ™ˆ Respects .gitignore: Automatically excludes ignored files
  • ⚑ Smart Filtering: Skips node_modules and hidden files

πŸ—οΈ Create Folder Structure

  • πŸ“ Multiple Input Formats: Support for JSON and Plain Text
  • πŸ–₯️ Modern UI: Live preview, validation, and line numbers
  • πŸ”„ Smart Handling: Replace/Skip prompts for existing files
  • πŸ—‘οΈ Safe Replace: Sends replaced items to Trash

πŸ“„ Copy File Name

  • ⚑ One-Click Copy: Quick file name copying to clipboard
  • 🎯 Simple & Fast: Right-click any file to copy its name

Quick Start

  1. πŸ“₯ Install the extension from VS Code Marketplace
  2. πŸ–±οΈ Right-click any folder in Explorer
  3. 🎯 Choose "Copy Folder Structure" or "Create Folder Structure"
  4. πŸŽ‰ Done! Your structure is ready to use

How to Use

πŸ“ Copy Folder Structure

  1. πŸ–±οΈ Right-click a folder in VS Code Explorer
  2. πŸ“‹ Select "Copy Folder Structure"
  3. πŸ“„ Structure is copied to clipboard in your preferred format (JSON/Plain Text)

πŸ—οΈ Create Folder Structure

  1. πŸ–±οΈ Right-click in Explorer OR use Command Palette (Ctrl+Shift+P)
  2. 🎯 Choose "Create Folder Structure"
  3. πŸ“‚ Select the target directory
  4. πŸ“ Choose format and paste your structure
  5. ✨ Click Create and watch the magic happen!

πŸ“„ Copy File Name

  • πŸ–±οΈ Right-click any file β†’ πŸ“‹ "Copy File Name"

Settings

Configure the extension to work exactly how you want:

  • πŸ“„ outputFormat: Choose between JSON Format or Plain Text Format
  • 🚫 ignorePatterns: Specify patterns to ignore when copying structures
  • πŸ™ˆ respectGitignore: Honor .gitignore rules (recommended: enabled)

πŸŽ›οΈ Settings Preview

Extension Settings


Live Previews

πŸ–±οΈ Context Menu Integration

Explorer Context Menu

πŸ“„ Copy File Name in Action

Copy File Name Demo

πŸ—οΈ Create Folder Structure

πŸ’Ό Common Usage

Common Usage Demo

πŸ”— With Git Ingest Integration

Git Ingest Integration Demo


Output Examples

πŸ—‚οΈ JSON Format

Perfect for programmatic use - files are represented as type strings:

{
    "app": {
        "api": {
            "analyze-typography": {
                "route": "ts"
            }
        },
        "favicon": "ico",
        "globals": "css",
        "layout": "tsx",
        "page": "tsx"
    }
}

🌳 Plain Text Format

Human-friendly GitIngest-style tree structure:

Directory structure:
└── app/
    β”œβ”€β”€ api/
    β”‚   └── analyze-typography/
    β”‚       └── route.ts
    β”œβ”€β”€ favicon.ico
    β”œβ”€β”€ globals.css
    β”œβ”€β”€ layout.tsx
    └── page.tsx

πŸ“ Plain Text Rules:

  • βœ… First line is treated as a header (can contain any text)
  • πŸ”— Every line must use tree connectors (β”œβ”€β”€ or └──)
  • πŸ“ Exactly one root directory ending with /
  • πŸ“ Consistent indentation (increases by one level each time)
  • ⚠️ Invalid lines are highlighted; confirmation required if errors exist

How It Works

πŸ“ Copy Folder Structure

  1. πŸ” Scans the selected folder intelligently
  2. πŸ™ˆ Respects .gitignore and exclude patterns
  3. 🚫 Filters out node_modules and hidden files automatically
  4. πŸ“‹ Copies structure in your chosen format (JSON or Plain Text)

πŸ—οΈ Create Folder Structure

  1. πŸ“– Reads input from the modern webview interface
  2. βœ… Validates and parses structure (JSON or Plain Text)
  3. ⚠️ Prompts for Replace/Skip when items already exist
  4. ✨ Generates folders and files safely (no accidental overwrites)

πŸ“„ Copy File Name

  1. πŸ–±οΈ Right-click any file in Explorer
  2. πŸ“‹ Copies the file name directly to clipboard

Troubleshooting

❓ Common Issues & Solutions:

🚫 No Option in Context Menu

  • πŸ”„ Solution: Reload VS Code (Ctrl+Shift+P β†’ "Reload Window")

πŸ“‹ Clipboard Not Working

  • πŸ” Solution: Check system clipboard permissions

❌ Input Error (Create Function)

  • πŸ“ Solution: Ensure input follows correct JSON or Plain Text format

πŸ“„ Copy File Name Not Working

  • πŸ“ Solution: Make sure you've selected a valid local file (not a folder)

License

MIT License β€” see LICENSE for details


Contact

πŸ› Found a bug? πŸš€ Have a feature request?

Open an issue on our GitHub repository


Made with ❀️ for developers worldwide 🌍

⭐ If this extension helped you, please consider giving it a star on the GitHub and marketplace!

Releases

No releases published

Sponsor this project

 

Packages

No packages published