Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>PHP Method RefactorNew to Visual Studio Code? Get it now.
PHP Method Refactor

PHP Method Refactor

Evgeniy Saranin

| (0) | Free
Rename PHP methods across the entire codebase with Ctrl+F2
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PHP Method Refactor

VSCode extension for renaming PHP methods across the entire codebase.

Usage

  1. Place cursor on a method name or select it
  2. Press Ctrl+F2 (Cmd+F2 on Mac)
  3. Enter the new method name
  4. Review found references and confirm

What it finds

  • function methodName( — declarations
  • ->methodName( — instance calls
  • ::methodName( — static calls
  • ${ methodName } — dynamic calls
  • '...methodName...' — string references

Configuration

{
  "phpRefactor.searchInFiles": ["**/*.php"],
  "phpRefactor.excludeFolders": ["vendor", "node_modules", ".git"]
}

Install

cd ~/vscode-php-refactor
vsce package
code --install-extension php-method-refactor-1.0.0.vsix
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft