问题
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.
回答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
回答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
回答3:
In Windows you can use Ctrl Alt e
回答4:
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.
来源:https://stackoverflow.com/questions/13842774/search-in-pycharm-interactive-console-command-history