MMago for VS Code

Magofor VS Code

PHP formatting, linting, and static analysis — powered by the mago toolchain.

code --install-extension kellymears.vscode-mago

Requires the mago CLI.

Configure

Formatting works out of the box. Add what you need.

Linting

Diagnostics from 135+ rules on save.

"mago.lint.enabled": true

Analysis

Static analysis in the Problems panel.

"mago.analyze.enabled": true

Lint on Type

Real-time feedback as you write.

"mago.lint.run": "onType"

Fix File

Auto-fix from the command palette.

⌘⇧P → Mago: Fix File (Safe)