Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Geany autocomplete Python constraints

How can I get Geany to autocomplete an object's constraints?

For example, I type:

self.window.set_position(gtk.WIN_

And I want the list of possible constraints to show up such as WIN_POS_NONE and WIN_POS_CENTER etc.

NOTE: CTRL+SPACE or CTRL+SHIFT+SPACE does not show constraints.

Autocompletion works fine for functions and symbols, just not constraints, unless I've used it once already before. This saves me the time of looking at documentation. Sometimes I can partially remember the constraint, and it would be nice to be able to browse the options.

I would basically like it to work like it does in Sublime Text, which is a near-perfect editor for me, but I'm looking for something free/opensource to use.

EDIT: I've also tried Ninja-IDE which can also display constraints, but it locks up sometimes and is not as lightweight as Geany...

EDIT 2: I'm not looking for an alternative to Geany, I'm looking to make this functionality work via a mod or plug-in.

like image 864
Delorean Avatar asked Mar 08 '17 17:03

Delorean


1 Answers

I don't think Geany is capable of doing this. But PyCharm is a lot better IDE for Python. It knows everything about your code, and also has an intelligent code completion, on-the-fly error checking and quick-fixes, easy project navigation, and much more.

There is also a free version ready to download which contains more than enough functionality a common programmer may need.

like image 145
Gal Dreiman Avatar answered Sep 17 '22 14:09

Gal Dreiman