Code Navigator
PHP code navigator — go-to-definition, usage & hook CodeLens, auto namespace detection.
Features
- Ctrl+Click method →
hook_ definition: jump from a method call to its matching hook_<method>().
- Ctrl+Click class/trait → source file: open the declaring file, including custom namespaces and overridden classes.
- "Usages" CodeLens: show call count above each function; click to list all usages.
before/after hook CodeLens: show hooks attached to a function (▲ before / ▼ after) click go to function of hook.
- Auto-detect namespaces: scan packages/modules from bootstrap.php and write them to settings.
- Highlight the destination: after jumping, center the target line and flash it.
- Missing-config warning: notify when required settings are not configured.
Configuration
- Require config: Please contact me for information on the required configurations.
- Optional
- Ctrl + shift + P > ALJ:auto-detect namespaces
Version log
- 3.0.6
- fix total usages with callback
array($this, 'function_name')
- 3.0.5
- fix click and performance
- 3.0.3
- Update click go to definition before/after of hook
- 3.0.2
- 3.0.1
- Auto detect namespaces in project
- 3.0.0
- Merger extension
hook tracker in to navigator
Requirements
- VSCode 1.90.0 or higher
- PHP files with hook definitions
License
MIT
| |