Sitecore Serialization Viewer
A powerful VS Code extension for visualizing Sitecore CLI serialization changes with detailed field-level diffs.

Features
🔍 Visual Change Tracking
- Added Items: See all newly serialized Sitecore items
- Modified Items: Track changes to existing items
- Deleted Items: View items removed from serialization
📊 Detailed Statistics
- Total changes overview
- Item count by change type
- Field-level change metrics
- Average fields changed per item
🎯 Field-Level Comparison
- Side-by-side diff viewer for individual fields
- Field metadata display (ID, scope, language, version)
- Inline preview of old vs new values
- Support for both shared fields and language-specific fields
🌳 Hierarchical Tree View
- Organized by change type (Added/Modified/Deleted)
- Expandable items showing all changed fields
- Quick navigation to YAML files
- Context menu actions
🎨 Rich Visual Panel
- Beautiful webview panel with detailed item information
- Color-coded change indicators
- Formatted diff display
- Complete item metadata
Screenshots
Changes Overview
The sidebar shows all serialization changes organized by type with expandable tree views.
Field-Level Diffs
Click any field to see a side-by-side comparison with syntax highlighting.
Statistics Dashboard
Track your serialization metrics with detailed counts and percentages.
Installation
From VSIX
- Download the latest
.vsix file from releases
- In VS Code, go to Extensions view (
Ctrl+Shift+X)
- Click the
... menu at the top
- Select "Install from VSIX..."
- Choose the downloaded file
From Marketplace (Coming Soon)
Search for "Sitecore Serialization Viewer" in the VS Code Extensions marketplace.
Usage
Getting Started
- Open a Sitecore project that contains a
Serialization folder with .module.json files
- The extension will automatically activate and analyze your serialization changes
- View changes in the Sitecore Serialization sidebar
Commands
| Command |
Description |
Shortcut |
Sitecore: View Serialization Changes |
Analyze and display all changes |
- |
Sitecore: Compare with HEAD |
Compare current state with Git HEAD |
- |
Sitecore: Refresh Serialization View |
Reload the analysis |
- |
Sitecore: Show Item Details |
Open detailed view panel |
- |
Sitecore: Open in Sitecore |
Open item in Sitecore Content Editor |
- |
Viewing Changes
Tree View
- Open the Sitecore Serialization view in the sidebar
- Expand change categories (Added/Modified/Deleted)
- Click any item to open its YAML file
- Expand modified items to see changed fields
- Click a field to see side-by-side diff
Detail Panel
- Right-click any item in the tree
- Select "Show Item Details"
- View complete item information and all field changes in a rich panel
Git Integration
The extension automatically integrates with Git:
- Detects added, modified, and deleted YAML files
- Compares current state with HEAD commit
- Shows field-level differences
- Auto-refreshes on file changes (configurable)
Configuration
Configure the extension via VS Code settings:
{
// Path to Sitecore serialization folder (relative to workspace root)
"sitecoreSerializer.serializationPath": "Serialization",
// Automatically refresh when serialization files change
"sitecoreSerializer.autoRefresh": true,
// Show field IDs in addition to field names
"sitecoreSerializer.showFieldIDs": false,
// Sitecore instance URL for opening items directly (e.g., "https://cm.mysite.com")
"sitecoreSerializer.sitecoreInstanceUrl": ""
}
Understanding Sitecore Serialization
What is Serialization?
Sitecore serialization is the process of converting Sitecore items (content, templates, settings) into YAML files that can be:
- Stored in source control (Git)
- Shared across development teams
- Deployed to different environments
CLI Commands
# Pull items from Sitecore to YAML files
dotnet sitecore ser pull
# Push YAML files to Sitecore
dotnet sitecore ser push
# Validate serialization
dotnet sitecore ser validate
This extension helps you visualize what changes occurred after running these commands.
How It Works
- YAML Parsing: Reads and parses Sitecore YAML files
- Git Integration: Uses Git to detect changes (added/modified/deleted files)
- Field Comparison: Compares old vs new field values at a granular level
- Visual Display: Presents changes in an intuitive tree structure
Requirements
- VS Code 1.85.0 or higher
- Git repository
- Sitecore XM Cloud project with CLI serialization
Known Issues
- Field name resolution relies on common Sitecore field IDs; custom fields show IDs
- Large repositories (1000+ items) may have initial load delay
- Binary field changes are not visualized
Roadmap
- [ ] Custom field name mapping configuration
- [ ] Export change reports
- [ ] Integration with Sitecore CLI commands
- [ ] Template hierarchy visualization
- [ ] Multi-branch comparison
- [ ] Change history timeline
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License - see LICENSE file for details
Support
Acknowledgments
Built for the Sitecore development community to make serialization workflows more transparent and efficient.
Made with ❤️ for Sitecore Developers