Patch Reader
January 30, 2026 ยท View on GitHub
A VS Code extension for visualizing patch and diff files using diff2html.
Features
- ๐ 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)
Installation
From VS Code Marketplace
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Search for "Tlcsdm Patch Reader"
- Click Install
From VSIX File
- 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
From Jenkins
Download from Jenkins
Usage
- 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
Configuration
| Setting | Description | Default |
|---|---|---|
tlcsdm.patchReader.defaultViewMode | Default view mode for diff visualization | side-by-side |
Development
Prerequisites
- Node.js 22.x or later
- npm
Build
# 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 package
License
MIT License - see LICENSE for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Credits
- diff2html - Beautiful diff visualization library