Skip to content

Instantly share code, notes, and snippets.

@smichaelsen
Created March 31, 2017 12:11
Show Gist options
  • Save smichaelsen/ee5bf5379eb559388d8d22f3d072fff7 to your computer and use it in GitHub Desktop.
Save smichaelsen/ee5bf5379eb559388d8d22f3d072fff7 to your computer and use it in GitHub Desktop.
PhpStorm Shortcuts

PhpStorm Shortcuts

Find / Open / Navigate

  • ⌘ + O: Open Class (append :42 to jump to a certain line)
  • ⌘ + ⇧ + O: Open File
  • ⌘ + Alt + O: Open Symbol
  • ⇧, ⇧: Search Everywhere
  • ⌘ + E: Recent files
  • ⌘ + ⇧ + E: Recently edited files

View

  • ⌘ + 1: Project view
  • ⌘ + ⇧ + → / ⌘ + ⇧ + ←: Increase (decrease) view size
  • : Focus editor
  • ⌘ + ⇧ + F12: Show editor only
  • ⌘ + ⇧ + A: Search for action (window, option, ...)

Code Navigation / Inspection

  • ⌘ + B: Go to declaration
  • ⌘ + Y: Show declaration inline
  • ⌘ + ⇧ + F7: Highlight usage in file (Esc to remove all highlightings)
  • ⌥ + F7: Find global usages

Text selection / editing

  • ⌃ + G: Select this. Repeat to extend selection to following occurences.
  • ⌘ + ⌃ + G: Select all usages
  • ⌥ + ↑: Expand selection
  • ⌥ + ⇧ + ↑ / ⌥ + ⇧ + ↓: Move current line 1 line up / down
  • ⌘ + ⇧ + ↑ / ⌘ + ⇧ + ↓: Move current method 1 method up / down
  • ⌘ + D: Duplicate line
  • ⌘ + ⌥ + ⇧ + C: Copy reference

Templates and Completion

  • ⌘ + ⇧ + ⏎: Complete current statement
  • : Expand current live template shortcut
  • ⌘ + ⌥ + T: Surround with
  • ⌥ + ⏎: Show intents
  • ⌘ + J: Show Live Templates
  • ⌃ + T: Show Refactorings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment