Two tools for working with code in VS Code: Folder Diff compares two folders and writes a report, Tree Generator writes the file tree of a project.
Folder Diff
Compares two folders line by line and writes one report file, or copies the report to the clipboard. The compared folders are only read, never changed.
- Report formats: Markdown, plain text, or a unified diff (patch).
- Compare options: ignore whitespace, letter case and line endings; set the number of context lines around each change.
- Include / exclude patterns: limit the comparison to the files you care about.
- Replacement filters: ignore parts of lines, such as GUIDs, version suffixes or timestamps (plain text or regular expressions); lines that differ only in those parts count as equal.
- Change markers: describe the comments that mark your own edits (for example
// {{MOD BEGIN}} … // {{MOD END}}); the report shows every change that is not covered by a marker.
- Watch patterns: regular expressions for places that must be customized in every new vendor version; the report lists each occurrence in the right folder that is not inside a marked place yet.
- Presets: save the whole form under a name, load it with one click, export presets to a JSON file and import them on another computer.
- Built-in help: the Help tab explains every option; Copy for AI puts the help and a task template on the clipboard, so an AI assistant can prepare a preset file for you.
Open it with JAI Tools: Folder Diff in the Command Palette. While the panel is open, right-click a folder in the Explorer and choose Use as Left in Folder Diff or Use as Right in Folder Diff.
Tree Generator
Writes the file tree of a folder to a file, or copies it to the clipboard.
- Formats: text tree, Markdown, or JSON.
- Modes: brief (names only) or detailed (file sizes, line counts and folder totals).
- Filtering: respects
.gitignore, skips common build and dependency folders (node_modules, .git, dist and others), takes your own include and exclude patterns, limits the depth, and can hide folders left empty after filtering.
Open it with JAI Tools: Generate Project Tree in the Command Palette, or right-click a folder in the Explorer and choose Generate Project Tree. Default values are in the settings under JAI Toolkit (jaiTools.treeGenerator.*).
Coming from JAI Diff Editor
Folder Diff and Project Tree Generator used to ship with JAI Diff Editor; presets saved there are transferred automatically when both extensions are installed.
Privacy
JAI Toolkit sends one anonymous usage event when a tool is opened and respects the VS Code telemetry setting. See PRIVACY.md.
License
See LICENSE.