Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>[ALJ] Code NavigatorNew to Visual Studio Code? Get it now.
[ALJ] Code Navigator

[ALJ] Code Navigator

Alex Truong

|
36 installs
| (0) | Free
I want to drink beer
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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.
    • Mattermost id: @truonglx
  • 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
    • Update readme
  • 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

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft