The Toy Box

A high-performance VS Code extension for structural organization, whitespace cleanup, visual clarity, and synchronized HTML/XML tag renaming.
Built for developers who care about clean structure, performance, and editor precision.
🚀 Why The Toy Box?
Most productivity extensions solve one small problem. The Toy Box solves the structural workflow problem.
- Keep files clean automatically.
- See structure clearly across Web, SQL, and PHP languages.
- Navigate faster with a smarter sidebar.
- Format on the fly with built-in JSON and alignment tools.
- Stay fast — optimized for large enterprise files.
✨ Core Features
🧭 Better Outline Panel (Advanced Structural View)
A dedicated sidebar that provides a deep, hierarchical view of your code with specialized language support and Material Symbols icons.
- ✔ SQL & PostgreSQL Entity Support: Automatically identifies and displays Tables, Stored Procedures, Functions, and Views with unique icons.
- ✔ PHP Function Support: Detects
public, private, protected, static, and standalone functions and displays them with a dedicated Function icon.
- ✔ Structural Nesting: Comments, variables, and inner functions nest under their parent class/function.
- ✔ #region Support: Full support for collapsible
#region folders — works across all supported languages including SQL and PHP.
- ✔ SQL & PHP region nesting: Tables, views, procedures, functions, and PHP functions detected inside a
#region block are correctly nested under it as collapsible children.
- ✔ Smart Comment Integration: Displays comments directly in the outline. Standard comments are cleaned of code prefixes (e.g.,
// is removed) for a professional look.
- ✔ Material Symbols Icons: All outline icons use Google's Material Symbols font, bundled locally — no internet connection required.
📋 GitHub-Style Markdown Alerts
The built-in VS Code Markdown preview now renders GitHub-style alert callouts with color-coded styling and icons.
- ✔ Built-in Preview Integration: Works directly in the standard Markdown preview (Ctrl+Shift+V) — no separate command needed.
- ✔ Five Alert Types:
[!NOTE], [!TIP], [!IMPORTANT], [!WARNING], and [!CAUTION], each with a distinct color and Material Symbols icon.
- ✔ Offline Font: The Material Symbols icon font is bundled with the extension — no Google Fonts network request needed.
- ✔ Custom Webview Preview: Also available as "The Toy Box: Open Markdown Preview with Alerts" for a standalone dark-themed preview panel.
Instantly turn messy, single-line JSON strings into perfectly indented, readable code.
- ✔ Smart Parsing: Validates JSON structure before formatting to prevent data loss.
- ✔ Tab-Aware: Automatically uses your editor's current tab/space settings.
- ✔ Context Menu: Right-click any JSON selection and choose "The Toy Box: Format JSON Selection".
📏 Smart Code Alignment
Align assignment operators (=) across multiple lines perfectly using the least amount of tabs possible.
- ✔ Indentation Aware: Correctly calculates visual width so that
= symbols align even when lines are at different indentation levels.
- ✔ Tab-Based: Uses your editor's specific tab size to calculate the perfect visual gutter.
Categorize important notes visually in both the editor and the outline.
- ✔ Custom Label Mapping: Map symbols (e.g.,
!, ?) to specific words like CRITICAL or QUESTION in the sidebar.
- ✔ SQL-Safe & PHP-Safe Scanning: Intelligent detection that ignores SQL strings, temp tables, and PHP variable references (e.g.,
$varName) while still highlighting actual comments.
⚙️ Extension Settings
All settings are unified under the theToyBox namespace.
| Setting |
Description |
theToyBox.showRegionsInOutline |
Enable/Disable the Better Outline panel. |
theToyBox.cleanOnSave |
Run cleanup automatically on save. |
theToyBox.customComments.enabled |
Enable or disable custom comment highlighting. |
theToyBox.customComments.labels |
Map symbols (like !) to words (like CRITICAL) in the outline. |
theToyBox.customComments.colors |
Map special characters to hex colors. |
📌 Release Notes
See CHANGELOG.md for the full release history.
👤 Author
Thomas Dromgoole
If this extension improves your workflow, consider leaving a rating ⭐
🪪 License
MIT