ModelSim DO File Grouping is a Visual Studio Code extension for cleaning up and reorganizing ModelSim/QuestaSim waveform .do files. It helps you make large wave setups easier to read by grouping signals into a clear structure, then lets you review and export the processed result from an interactive custom editor.
Disclaimer: This extension is an independent, community-developed tool and is not affiliated with, endorsed by, or part of Siemens EDA (Mentor Graphics), ModelSim, or QuestaSim. All product names and trademarks are the property of their respective owners.
Features
Open .do files in a custom editor (ModelSim DO Viewer)
Automatically groups signals based on their hierarchy path (default behavior)
Optional name-based grouping (groups signals sharing at least 4 leading characters)
Regex-based custom grouping
Drag-and-drop reordering of signals and groups in the hierarchy view
Per-signal and per-group color assignment
Undo / Redo history
Edit mode: toggle the EDIT button to open the file in a Monaco editor with TCL syntax highlighting — edit directly in the webview
Save: overwrite the original .do file with current content (one click)
Save As: save to a new file via a standard save dialog
Copy All: copy the current code view to clipboard
Open in Editor: open the file in the native VS Code text editor
Changelog
1.1.0
Added EDIT radio toggle button to activate/deactivate inline edit mode
Fixed Monaco editor losing focus on every keystroke (editor is now stable while typing)
Added Save button to overwrite the original .do file in place
1.0.2
Initial public release
Development
Prerequisites: Node.js + npm
Install dependencies:
npm install
Run web UI in dev mode:
npm run dev
Build extension entrypoint:
npm run build:extension
Build for VS Code
Build extension + webview bundle:
npm run vscode:prepublish