Can Pycharm autocomplete the left side of assignment operator?

Answered

Can Pycharm  autocomplete the left side of an assignment operator like eclipse can with ctrl+shift+L?

Assume I have a function such as :

def file_list(self, pattern=None):
...
return matching_filenames
self.file_list(pattern)

Assume I type/auto complete this code fragment

self.file_list(pattern)

Can I auto complete to something like:

matching_filenames = self.file_list(pattern)  // or even
file_list = self.file_list(pattern)

How? 

I cannot file anything in:

 

Update with Answer

I've worked out how this can be done:

self.file_list(pattern)[Ctrl+Alt+V]

Offers me 

file_list = self.file_list(pattern)

or

self_file_list = self.file_list(pattern)

 

1 comment

Hi,

Not sure what exactly this shortcut does in Eclipse, but why not start typing matching_filenames, autocomplete it and then keep typing and autocompleting with what you need?

-1

Please sign in to leave a comment.