Jianzhao Huang
Jianzhao Huang

Reputation: 1

Visual Studio Code doesn't hint the __init__() formal parameters when trying to assign them into a instance

It's common to assign local parameter into a instance within __init__() function in a class.

enter image description here

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

Answers (0)

Related Questions