Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pycharm python console autocompletion

if I start ipython in a terminal, when I type 'im' and press TAB, the terminal will auto-complete it with 'import', but when I click python console button in the bottom of pycharm IDE, when the ipython environment shows, type 'im', press TAB, it will not give autocompletion.

In PyCharm, it use pydevconsole.py to create the ipython environment, but I do not know how to change it to enable the autocompletion.

like image 308
PhilChang Avatar asked Sep 08 '15 12:09

PhilChang


People also ask

How do I use python console in PyCharm?

You can assign a shortcut to open Python console: press Ctrl+Alt+S , navigate to Keymap, specify a shortcut for Main menu | Tools | Python or Debug 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.

How do I turn on autocomplete in Python?

(In Python Shell window, you can use TAB key besides the key combination of 'CTRL' and 'space' to invoke the built-in auto-completion feature.) Alternatively, you can choose the "Show Completions" in the main Edit menu to achieve the same as well.

How do I get auto suggestions on PyCharm?

Press Ctrl+Alt+S to open the IDE settings and select Editor | General | Code Completion. Under Machine Learning-Assisted Completion, enable the Sort completion suggestions based on machine learning option, and select the languages for which you want to use ML completion.

How do I autocomplete in Python idle?

Code Completion and Call Tips Python IDLE has basic code completion functionality. It can only autocomplete the names of functions and classes. To use autocompletion in the editor, just press the tab key after a sequence of text.


1 Answers

You can use Ctrl+Space for auto completion. See here.

like image 165
Yuval Atzmon Avatar answered Sep 22 '22 03:09

Yuval Atzmon