Skip to content

Instantly share code, notes, and snippets.

@petrofcikmatus
Forked from MortalFlesh/PHPStorm cheatsheet.md
Created January 14, 2018 20:33
Show Gist options
  • Save petrofcikmatus/d918beab14a7185941e345252cc147a1 to your computer and use it in GitHub Desktop.
Save petrofcikmatus/d918beab14a7185941e345252cc147a1 to your computer and use it in GitHub Desktop.

PHPStorm Cheatsheet

Keyboard shortcuts

Storm

  • cmd + shift + a - find action
  • shift + ESC - close window

Find

  • cmd + o - find class
  • cmd + shift + o - find file
  • cmd + alt + o - find symbol (method)
  • shift + shift - find everywhere
  • cmd + shift + f - find in file (from project view)
  • cmd + shift + r - replace in file (from project view)
  • ctrl|cmd + f - find in file
  • ctrl + h - replace in file
  • cmd + g - go to line
  • alt + F7 - show usages in window
    • cmd + LMB - show usages at caret

Navigate

  • alt + F1 - show file in project view
  • ESC - focus back to file from project view
  • cmd + ↓|LMB - go to declaration
  • cmd + e - recent files
  • ctrl + q - go to last change
  • alt + ↑/↓ - go to previous/last occurrence

Caret

  • ctrl + alt + ↑/↓ - clone caret above/below
  • ctrl + g - clone caret by occurrence
  • cmd + shift + ↓ - clone line bellow (or copy marked text)
  • alt + shift + ↑/↓ - move line up/down
  • cmd + backspace - remove line
  • cmd + shift + ↑ - move code block up

Others

  • alt + space - show definition
  • ctrl + space - code completion
  • alt + enter - show intention actions
  • cmd + shift + x - open command tool
  • shift + F12 - open terminal

Generating

  • cmd + n - shows generation options
  • ctrl + o - override parent method(s)
  • cmd + j - insert live template

Refactoring

  • ctrl + r - refactor this (or rename file in project view)
  • ctrl + t - introduce variable/method/...
  • F5 - copy class/constant/...
  • F6 - move class/constant/...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment