Skip to content

Instantly share code, notes, and snippets.

View stoufam71's full-sized avatar
🎯
Focusing

AM stoufam71

🎯
Focusing
  • 1 shaf in front of you
View GitHub Profile
Action Windows macOS
Optimize imports Ctrl + Alt + O βŒ₯ + ⌘ + O
Open Project Settings Ctrl + Shift + Alt + S ⌘ + ; (Preferences)
Create test class Ctrl + Shift + T ⇧ + ⌘ + T
Run Shift + F10 βŒƒ + R
@stoufam71
stoufam71 / gistshortcut4.md
Created October 29, 2025 03:48
Shortcut Git / Version Control
Action Windows macOS
Open Commit Window Ctrl + K ⌘ + K
Push to Remote Ctrl + Shift + K ⇧ + ⌘ + K
@stoufam71
stoufam71 / gistshortcut3.md
Created October 29, 2025 03:47
Shortcut Search & Lookup
Action Windows macOS
File structure / members Ctrl + F12 ⌘ + F12
Search everywhere Double Shift Double ⇧
Find in files Ctrl + Shift + F ⇧ + ⌘ + F
Show documentation Ctrl + Q F1
Quick definition (show function) Ctrl + Shift + I βŒ₯ + Space
Next code issue / error F2 F2
Go to file F4 ⌘ + ↓ (or Enter in Project View)
@stoufam71
stoufam71 / gistshortcut2.md
Created October 29, 2025 03:45
Shortcut Navigation
Action Windows macOS (PhpStorm)
Go to declaration Ctrl + B ⌘ + B
Go to implementation Ctrl + Shift + B βŒ₯ + ⌘ + B
Go back Ctrl + Alt + Left ⌘ + [
Go forward Ctrl + Alt + Right ⌘ + ]
Go to cursor location / Mark Ctrl + M βŒƒ + M (customizable)
Go to line number Ctrl + G ⌘ + L
Switcher (Recent files / previous class) Ctrl + Tab βŒƒ + Tab
Show current file in Project View Alt + F1 β†’ 1 βŒ₯ + F1 β†’ 1
@stoufam71
stoufam71 / gistshortcut1.md
Last active October 29, 2025 03:44
Shortcut Code Editing & Refactoring
Action Windows macOS (PhpStorm)
Reformat Code Ctrl + Alt + L βŒ₯ + ⌘ + L
Block Word / Extend Selection Ctrl + W βŒ₯ + ↑
Shrink Selection Ctrl + Shift + W βŒ₯ + ↓
Select Same Word Alt + J βŒƒ + G
Select All Same Words Ctrl + Alt + Shift + J βŒƒ + ⌘ + G
Delete Line Ctrl + Y ⌘ + ⌫
Duplicate Line Ctrl + D ⌘ + D
Surround With (if, try, etc.) Ctrl + Alt + T βŒ₯ + ⌘ + T