Search code examples
pycharmkeyboard-shortcuts

Can Pycharm select current word when searching?


Most applications select the whole word at the current cursor position when searching, but PyCharm doesn't seem to do this. I know I can double click or do Ctrl + Left then Shift + Ctrl + Right before hitting Ctrl + F, but it's not ideal.

Am I missing something? I can't see an option to turn on that selects the current word by default.


Solution

  • I searched the PyCharm keymap and the best match is Ctrl + W Extend Selection (before using Ctrl + F or Ctrl + Shift + F to search). It's configured by default but can also be constumized in File > Settings > Keymap.

    image of settings keymap

    There is also a plugin at JetBrains Marketplace called BrowseWordAtCaret that: "Allows to easily browse next/previous word at caret and highlight other appearances of selected word."