Skip to content

PhpStorm: Tips

Invert / switch / flip comparison operands

  • Place caret on code
  • Alt + Enter
  • "Flip ..."

Generate code

  • ALT + Insert

Hide directory from project view

  • Right click > Mark directory as > Excluded;
  • Switch between "Project" and "Project files";

Refactoring code

  • Select
  • Refactor this (CTRL + ALT + SHIFT + T)
  • introduce, extract, copy, pull

Search in changed files only

  • Search : (instead of "All places") "All changed files"

Select variable name without "$" sign

  • Settings > Editor > General > Smart Keys > PHP