A VS Code extension for visualizing patch and diff files using diff2html.
- 📄 Open
.patchor.difffiles with visual diff rendering - 🔄 Two-tab editor: Visual diff view and raw content view
- 📐 Side-by-side and unified view modes
- 🎨 Theme integration - automatically follows VS Code's color theme (Light/Dark)
- ✏️ Auto-render when file content changes
- 🔧 Configurable default view mode
- 🌐 Internationalization support (English, Chinese, Japanese)
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Tlcsdm Patch Reader"
- Click Install
- Download the latest
.vsixfile from Releases - Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Click the
...menu and select "Install from VSIX..." - Select the downloaded
.vsixfile
Download from Jenkins
- Open any
.patchor.difffile in VS Code - The file will automatically open in the Patch Reader editor
- Use the tabs to switch between:
- Visual Diff: Rendered diff using diff2html
- Raw Content: Original file content
- Use the view mode buttons to switch between:
- Side-by-Side: Two-column diff view
- Unified: Single-column diff view
| Setting | Description | Default |
|---|---|---|
tlcsdm.patchReader.defaultViewMode |
Default view mode for diff visualization | side-by-side |
- Node.js 22.x or later
- npm
# Install dependencies
npm install
# Compile
npm run compile
# Watch for changes
npm run watch
# Run tests
npm run test
# Lint
npm run lint
# Package extension
npx @vscode/vsce packageMIT License - see LICENSE for details.
Contributions are welcome! Please feel free to submit a Pull Request.
- diff2html - Beautiful diff visualization library