Search in PyCharm interactive console command history

11,138

Solution 1

As of PyCharm 3.1, while in the console, press ⌥⌘e, the "Browse History" window will come up, start typing to search for specific commands

Solution 2

Not available yet, please vote for the related feature requests:

  • PY-7922 In console, search history by typing prefix and pressing the "up" key
  • PY-5011 Ctrl+R in console should invoke history search like in bash

Solution 3

Nowadays, there is "Browse Console History" button located to the left of python console. It works on all OS where PyCharm works.

In Windows and Linux there is Ctrl+Alt+E which does exectly the same, but it may not work on Linux if it is overriden by system hotkey Alt.

enter image description here

Solution 4

In Windows you can use Ctrl Alt e

Share:
11,138
Paidhi
Author by

Paidhi

Dad. Nerd. Interests: Programming, Automation, Sysadmin.

Updated on July 01, 2022

Comments

  • Paidhi
    Paidhi almost 2 years

    PyCharm keeps a command history for it's interactive Python console.

    Is there a way to access this history with some sort of search instead of just browsing the entries with the arrow keys in the interactive console window?

    My environment: PyCharm 2.7 EAP (124.138) on MacOS X 10.8.2.

  • Paidhi
    Paidhi over 10 years
    Just to follow-up. This is now available in the PyCharm Python Console. The feature is called Browse History. (I use PyCharm 3.1 EAP.)
  • stuppie
    stuppie over 8 years
    I know this is an old question, but this still doesn't seem to be working. I'm using PyCharm Community Edition 4.5.4. Ctrl+E nor Ctrl+R work.
  • David Parks
    David Parks almost 7 years
    Does anyone know the windows or linux keyboard shortcut here?
  • akvilas
    akvilas over 6 years
    In Windows, it appears to be Ctrl + Alt + E
  • foobarbecue
    foobarbecue almost 6 years
    gotta love those mac symbols... just press escalator cloverleaf! Not even most mac people seem to be able to interpret the mysterious escalator symbol...