PyCharm methods autocompletion.

Where i can find option in which i can turn on autocomplete for methods in Python in PyCharm? Problem is that i need to type parentheses after methods manually.

Best,

Andrey.

5 comments
Comment actions Permalink

Assuming you mean: you would like to type punctuation character (e.g. parenthesis) to cause completion:

Settings > Editor > General > Code Completion > Insert selected variant by typing dot, space, etc.

 

I have switched that on, to make PyCharm like Visual Studio (C#) code completion.

0
Comment actions Permalink

Hi. Thanks for you suggestion, mate! But no... For example: When i am typing "method_name.title" and hit Enter i will see "method_name.title". But what i want to see is "method_name.title()".

0
Comment actions Permalink

In that case I don't understand what you are seeing.

Firstly, you give example of `method_name.title`.  Is `method_name` genuinely a method, because this makes little sense if it is?

Assuming you mean something more like `class_instance.title`, then in PyCharm I _already_ see that when it offers completions it shows `class_instance.title(self)`, and I get the following `()` (the `self` does not appear) when I click <Enter>.  So I'm not "typing any parentheses manually".

Is there a specific situation or pattern to what you are seeing?

0
Comment actions Permalink

Did you have any solution?

0
Comment actions Permalink

Bastian 220997 please report the issue to https://youtrack.jetbrains.com/issues/PY and provide a code snippet that demonstrates the problem.

0

Please sign in to leave a comment.