Auto generate of classes no longer working (?)

已回答

I'm sure when I first installed PyCharm I could start typing class, choose it from the auto-completion menu and it would put generate a stub for a new class, in the form...

class CLASSNAME(object):
"""docstring for CLASSNAME"""

def __init__(self):
super(CLASSNAME, self).__init__()

However, that no longer happens and I can't figure out why not (although I am wondering if perhaps I imagined it now...). I've tried adding a new live template to replace this functionality but it seems to be getting 'blocked' by the default action in the menu.

Am I going crazy or does/did PyCharm have this as a feature?

0

Hi Mark,

I don't think that we've ever had such live template bundled with PyCharm (otherwise I'd have probably used it myself :)). Though it's indeed relatively straightforward to define your own. What do you mean by saying that it's getting "blocked"?

0
Avatar
Permanently deleted user

Hi Mikhail

That's very odd...

When I say 'blocked', selecting 'class' from the contextual menu now does nothing more than complete the word class...which doesn't seem hugely useful ;)

0

请先登录再写评论。