Search in PyCharm interactive console command history

帅比萌擦擦* 提交于 2019-12-05 12:15:54

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!