Updates on its own
Add, rename or delete a file and the tree is rewritten. It only writes when the content really changed.
File Structure Generator
A clean, always up-to-date map of your project, in one text file. It skips node_modules, virtual environments, build output and anything in your .gitignore.
v0.1.0Free, MITVS Code 1.91+No data collected
Add, rename or delete a file and the tree is rewritten. It only writes when the content really changed.
Dependency, build, cache and IDE folders at any depth, lock files, compiled files and anything in .gitignore.
Waits while Git switches branches, and offers to keep the file out of Git. It never commits or pushes.
Quick start
From the Marketplace, or with one command.
ext install AdithyaLochana.fs-generatorAny language. Nothing to set up first.
It is in the root of the folder, already written.
Then use it for
Give a chat assistant the whole picture
Paste the tree instead of describing folders by hand. The assistant sees the layout and asks better questions.
auth.js in src/routes, then register it in src/index.js.Settings
Change anything on the left. The file on the right is rebuilt with the same rules the extension uses, and only your changes go into settings.json.
Tree style
Plain ASCII lines, or ├── and └── connectors.
fsGenerator.treeStyle
Folders first
List folders before files.
fsGenerator.foldersFirst
Depth
How many levels deep. 0 means no limit.
fsGenerator.maxDepth
Leave out
Extra patterns to skip.
fsGenerator.exclude
Keep anyway
Keep something the defaults or .gitignore would hide.
fsGenerator.include
Built-in skip list
node_modules, .venv, dist, caches and the rest.
fsGenerator.useDefaultExcludes
Respect .gitignore
Also skip what the root .gitignore lists.
fsGenerator.respectGitignore
Output file
Can include folders. A .md file gets a code block.
fsGenerator.outputFile
Left out (6)
built-in.gitignoreexclude
Which rule wins
Rules apply in this order. A later one wins.
Pattern syntax
exclude and include use .gitignore syntax. Click one to try it.
autoUpdate
default true
Update the file automatically. When off, only Generate writes it.
outputFile
default "filestructure.txt"
File name, relative to the folder. A .md file gets a code block.
showStatusBar
default true
Show the Structure item in the status bar.
promptGitignore
default true
Point out once if the file is committed or not ignored, and offer a fix.
useDefaultExcludes
default true
Leave out the built-in list of dependency, build, cache and IDE folders.
respectGitignore
default true
Also leave out everything in the folder’s .gitignore.
exclude
default []
Extra patterns to leave out.
include
default []
Patterns to keep even if a rule would leave them out.
treeStyle
default "simple"
simple draws |-- lines, tree draws ├── and └──.
foldersFirst
default false
List folders before files.
maxDepth
default 0
How many levels deep. 0 means no limit.
maxEntries
default 20000
Stop after this many entries. 0 means no limit.
Status bar & Git
The file changes whenever your files do, so in a Git project it would show up in every diff. Pick what you want from the menu. A choice only stages a change. You review and commit it yourself.
Tree style · how the file looks, saved for this project
Layout
Git · kept out (listed in .gitignore)
More
Keep out of Git
Add it to .gitignore
Adds one line to the project’s .gitignore and stages it. If your .gitignore has other uncommitted edits, it is left unstaged so your edits are never swept in.
.gitignore
Source Control · Staged changes
M.gitignore
Nothing committed or pushed. You review it.
Commands
Press Ctrl Shift P (Cmd on macOS) and type File Structure.
Good to know
A folder called build, logs, out or temp is hidden
The built-in list matches names. Keep it with include.include: ["build"]
A plain bin folder is shown
It is often real source, in Go and Ruby. Hide it with exclude.exclude: ["bin/"]
Only the root .gitignore is read
Ones in subfolders are not.
Symlinked folders are listed, not followed
So a circular link can’t loop forever.
Needs a real folder on disk
It doesn’t run in virtual workspaces like github.dev.
v0.0.1First release.
Free · MIT · VS Code 1.91+ · Works in any language