Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Search in PyCharm interactive console command history

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.

like image 751
Paidhi Avatar asked Dec 12 '12 15:12

Paidhi


People also ask

How do I search in PyCharm terminal?

Pycharm console (debug) search history FollowStart typing, and then use Ctrl-p (previous,up) and Ctrl-n (next,down) to search through only the history items that match what you've typed so far. If you use Ctrl-p/Ctrl-n at a blank prompt, they just behave like normal arrow keys. Hit Ctrl-r: opens a search prompt.

Does PyCharm have an interactive console?

The main reason for using the Python console within PyCharm is to benefit from the main IDE features, such as code completion, code analysis, and quick fixes. and check the Special Variables list. The console is available for all types of Python interpreters and virtual environments, both local and remote.

What does the debug console do?

The Debug Console enables you to view the output and error messages. You can optionally make command prompt available.


2 Answers

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

like image 112
Israel Zalmanov Avatar answered Sep 18 '22 14:09

Israel Zalmanov


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
like image 35
CrazyCoder Avatar answered Sep 21 '22 14:09

CrazyCoder