AsksAnyway
AsksAnyway

Reputation: 930

How do I stop PyCharm from autocompleting class methods?

When I type:

def method(, PyCharm jumps in with def method(self):. I would like to disable this behaviour.

Upvotes: 13

Views: 12613

Answers (3)

AsksAnyway
AsksAnyway

Reputation: 930

The option is located at:

Settings > Editor > Smart Keys > Insert Self...

EDIT: As of pycharm 2017.1 it's under File -> Settings -> Editor -> General -> Smart Keys

Upvotes: 11

Robert Fey
Robert Fey

Reputation: 1807

In PyCharm 2017.1

File -> Settings -> Editor -> General -> Smart Keys -> "Insert 'self' when defining a method"

Upvotes: 4

Javaru
Javaru

Reputation: 32006

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.

Upvotes: 4

Related Questions