A visual toolkit for Hearts of Iron IV modding. Edit state files with a node-based editor, preview maps, diff original vs generated code, and validate at scale — all inside VS Code.
Highlights
Launcher panel: HOI4: Launch Mod Editor
Visual State Editor
Drag-and-drop nodes for state properties, history, resources, buildings, and dated events
Auto-connections with strict rules (e.g., buildings/provincial under a buildings_block; dated content under date_block)
Smart column layout, snap-to-grid, and parent/child placement rules
Live code generation with comment retention and original-order preservation
One-click Compare (diff) and safe Save back to your mod
Map Viewer
Provinces, States, and Countries views with pan/zoom and water tint toggle
Tooltip with owner, buildings, VP, strategic region, units (when available)
Mod Picker & Utilities
List local/Steam mods, open in Explorer/VS Code, duplicate/rename, set icon
Read-only guard for Steam mods; duplicate to edit safely
Quick Start
Install the extension and open VS Code.
Run HOI4: Launch Mod Editor.
Pick your mod from the Mod List (or configure folders in Settings).
Shift+Click a state on the map to open the Visual State Editor.