문제

When I type:

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

도움이 되었습니까?

해결책

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

다른 팁

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.

In PyCharm 2017.1

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top