Folder Structure Generators
Folder Structure Generators is a VS Code extension that creates a readable folder tree for your workspace and adds it to your README.md.
What It Does
- generates a clean project structure tree
- updates or creates a
Project Structure section in README.md
- copies the generated tree to the clipboard
- lets you control depth, files, section title, and excluded paths
Install
Install from the Visual Studio Marketplace:
https://marketplace.visualstudio.com/items?itemName=TigerDev1991.folder-structure-generator-tigerdev1991
You can also install the packaged .vsix file directly in VS Code:
- Open Extensions in VS Code.
- Select the
... menu in the top-right corner.
- Choose
Install from VSIX...
- Select
folder-structure-generator-tigerdev1991-0.1.0.vsix
How To Use
- Open your project folder in VS Code.
- Open the Command Palette:
macOS:
Shift + Cmd + P
Windows/Linux: Shift + Ctrl + P
- Run one of these commands:
Folder Structure Generator: Update README Structure
Folder Structure Generator: Copy Folder Structure
Commands
Folder Structure Generator: Update README Structure
Generates the workspace tree and inserts it into README.md.
Folder Structure Generator: Copy Folder Structure
Generates the workspace tree and copies it to your clipboard.
Example Output
my-project/
├── src/
│ ├── commands/
│ └── utils/
├── README.md
└── package.json
README Output
When you run Update README Structure, the extension adds or updates a section like this:
## Project Structure
```text
my-project/
├── src/
│ ├── commands/
│ └── utils/
├── README.md
└── package.json
```
Settings
You can configure these settings in VS Code:
folderStructureGenerator.sectionTitle
The heading used in README.md. Default: Project Structure
folderStructureGenerator.maxDepth
Maximum folder depth to include. Default: 3
folderStructureGenerator.includeFiles
Include files in the generated output. Default: true
folderStructureGenerator.exclude
Files and folders to ignore
The extension also respects entries from the workspace .gitignore file.
Default excluded names:
[
".git",
"node_modules",
"folder-structure-generator",
".DS_Store",
".vscode-test",
"dist",
"out"
]
Requirements
- VS Code
1.85.0 or later
- A workspace folder with a
README.md file if you want to update documentation automatically
Support
License
MIT