Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyDev - Turn off autocomplete + hotkey for completion suggestions?

I am new to Eclipse/PyDev and I would like to change its default behavior.

First, I would like to turn off the auto-complete suggestions window that pops up while I am typing. I just find this distracting. I actually managed to do this by changing a bunch of settings in Window > Preferences > PyDev > Editor > Code Analysis/Code Completion, but I'm not sure which of the settings I changed was the correct one.

Secondly, I do find the suggestions window helpful when I need it. If I have autocomplete disabled, is there a hotkey I can press to pull up the window when I want it?

like image 458
pnips Avatar asked Feb 06 '15 14:02

pnips


People also ask

How to disable code completion in PyCharm?

Go to File > Settings (or Ctrl + Alt + S ) > [IDE Settings] > Editor > Code Completion. The "Autopopup code completion" setting will determine if the popup opens automatically. Below it, the "Insert selected variant by typing dot, space, etc." is likely the setting you want to turn off.

How to turn on suggestion in 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 idle?

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. The call tip will display as a popup note, reminding you how to append to a list.

Does Python have autocomplete?

The IPython 6.0 REPL introduced the Jedi library for code completion, which is the standard for Python autocomplete functionality in Jupyter notebooks.


1 Answers

For now, I have the auto-completion behavior like this: only when ctrl+space is pressed Eclipse rises possible autofill suggestions, in other cases the window is still clean. To end up having this result, you need to go to Windows/Preferences/PyDev/Editor. In the 'Code Completion' form unplug all checkboxes except 'Use code completion?'. And in 'Code Completion (ctx and insensitive common tokens)' you need to unplug all checkboxes. Hope this helps.

P.S. I use eclipse Luna 4.4.2 with PyDev version 4.1.0.201505270003

like image 174
Illia Danko Avatar answered Oct 14 '22 03:10

Illia Danko