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 Structuresection inREADME.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:
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+PWindows/Linux:Shift+Ctrl+P - Run one of these commands:
Folder Structure Generator: Update README StructureFolder Structure Generator: Copy Folder Structure
Commands
Folder Structure Generator: Update README StructureGenerates the workspace tree and inserts it intoREADME.md.Folder Structure Generator: Copy Folder StructureGenerates 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.sectionTitleThe heading used inREADME.md. Default:Project StructurefolderStructureGenerator.maxDepthMaximum folder depth to include. Default:3folderStructureGenerator.includeFilesInclude files in the generated output. Default:truefolderStructureGenerator.excludeFiles 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.0or later - A workspace folder with a
README.mdfile if you want to update documentation automatically
Support
- GitHub: https://github.com/TigerDev-Studio
- Repository: https://github.com/TigerDev-Studio/Folder-Structure-Generator
- Issues: https://github.com/TigerDev-Studio/Folder-Structure-Generator/issues
License
MIT