Search code examples
keyboard-shortcutsphpstorm

Is there a keyboard shortcut to select current word?


In JetBrains PhpStorm, what is the keyboard shortcut to select the current word? (I mean the word where the cursor is)


Solution

  • Yes there is but it's different from one IDE to another, And here are 3 examples:

    • SublimeText: Selection -> Expand Selection to Word (The shortcut will be shown next to it according to your OS)
    • PhpStorm: Edit -> Extend Selection (The shortcut will be shown next to it according to your OS)
      • MAC Extended Selection Shortcut: ⌥ + ↑
      • MAC Shrink Selection Shortcut: ⌥ + ↓
      • MAC Select all occurrences: ˄ + Command + G
    • Visual Studio Code: Selection -> Add Next Occurrence (The shortcut will be shown next to it according to your OS)
      • MAC Add Next Occurrence: Command + D
      • MAC Select All Occurrences: Shift + Command + L