← Back to Shortcut Collections
PHPStorm

PHPStorm

The pinnacle IDE for PHP development, accelerating modern PHP development with framework support and database integration

Shortcuts for continuously improving PHP code quality with safe refactoring features like renaming, method extraction, and variable extraction

Shift+F6
Rename
Safely rename a symbol.
💡 Hint: Rename with F6
🎯 Safely rename variables, methods, and classes with project-wide updates
Ctrl+Alt+M
Extract Method
Extract selected code as a method.
💡 Hint: Method
🎯 Extract duplicate code blocks as methods to improve reusability
Ctrl+Alt+V
Extract Variable
Extract expression as a variable.
💡 Hint: Variable
🎯 Extract complex expressions into clear variables to improve code readability
Ctrl+Alt+C
Extract Constant
Extract value as a constant.
💡 Hint: Constant
🎯 Extract magic numbers as constants to improve maintainability
Ctrl+Alt+N
Inline
Inline variable, method, etc.
💡 Hint: Inline
🎯 Inline unnecessary variables or methods to make code more concise
F6
Move
Move a file or class.
💡 Hint: Move with F6
🎯 Move classes or methods to appropriate locations to improve code structure
Alt+Delete
Safe Delete
Safely delete unused code.
💡 Hint: Safe Delete
🎯 Safely delete unused code to keep the codebase clean
F5
Copy
Copy a file or class.
💡 Hint: Copy with F5
🎯 Efficiently create new code based on existing classes or files