Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Easy Cocos Prefab ReaderNew to Visual Studio Code? Get it now.
Easy Cocos Prefab Reader

Easy Cocos Prefab Reader

Phat Hoang

|
12 installs
| (1) | Free
Helps show prefab and scene file in Cocos Creator in a more readable format
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Easy Cocos Prefab Reader

A Visual Studio Code extension for parsing, minimizing, and comparing Cocos Creator .prefab files.
This tool helps you quickly inspect and diff prefab files, making it easier to review changes and resolve merge conflicts.

Tested with Cocos Creator 3.8.5.

Features

  • Parse Prefab: Minimize and format a Cocos .prefab file for easier reading.
  • Compare Prefab Versions: Compare minimized versions of a prefab file between HEAD and MERGE_HEAD during a Git merge.
  • Compare With Input Text: Compare the current prefab file with any input text to see differences.
  • Source Control Diff: Compare the current prefab file with the staged version in source control.
  • VS Code Integration: Commands available directly from the command palette.

Usage

  1. Parse a Prefab File

    • Open a .prefab file in VS Code.
    • Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).
    • Run EasyCocosPrefabReader: Parse Prefab.
    • The minimized result will open in a new editor tab.
  2. Compare Prefab Versions (during Git merge)

    • Open a .prefab file that is in conflict during a merge.
    • Open the Command Palette.
    • Run EasyCocosPrefabReader: Compare Prefab Versions.
    • A diff view will show the minimized versions from both branches.
  3. Easy Cocos Prefab Reader: Compare With

    • Open a .prefab file.
    • Open the Command Palette.
    • Run Easy Cocos Prefab Reader: Compare With.
    • Input the text you want to compare with the current file.
    • A diff view will show the differences.
  4. Easy Cocos Prefab Reader: Show Source Control Diff

    • Open a .prefab file changes in the Source Control panel.
    • Open the Command Palette.
    • Run Easy Cocos Prefab Reader: Show Source Control Diff.
    • This will compare the current file with the staged version in source control.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft