Reputation: 1
It's common to assign local parameter into a instance within __init__()
function in a class.
When using Pycharm, when typing self.
, the IDE will hint formal parameters of the constructor, so we can quickly assign them to a instance.
But when using vscode, there is nothing to hint when typing self.
, so we have to write the parameters' name once again, which is troublesome and more likely cause typo.
Is there a way to quickly assign the parameters in __init__()
to a instance in python when using vscode?
Upvotes: 0
Views: 175