-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Quick fix action to create class, method etc. #2653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Related to this, there should also be a quick fix for adding This is available in PyCharm, as documented here |
I recently switched from pyCharm to VSCode, and this is a feature I was using a lot to fix error/warning in the code. Is there any ETA for this function to work ? Thanks |
Another one I would love would clean up all unused imports in one step. This is a dumb action I am finding myself doing at least once per day and it's boring as hell. |
I'm on version Is this still expected or is something wrong in my setup? |
Hey folks, glad you all are interested in this feature. It's marked as needs spec, so it means it needs some design work before we're ready to work on it or mark it as "needs PR" so community contributors can work on it as well. It's also worth mentioning that we're tracking auto imports here and unused imports cleaning here. |
@luabud Thanks for the Update. |
Any news on this? |
@altabe no updates on this issue so far AFAIK, but we definitely appreciate the feedback! |
any updates please? plugin or anything else? This is easily one of the most used and useful features I used in PyCharm, would love to see it in vscode |
We have been discussing about solving this in Pylance: microsoft/pylance-release#3600 |
Closing in favour of the Discussion over on Pylance. |
Uh oh!
There was an error while loading. Please reload this page.
Environment data
Actual behavior
Pops up with "No code actions available".
Expected behavior
Equivalent behaviour to IntelliJ IDEA: suggest creating a method
bar
in classFoo
. Based on the property reference string this could then be extended to create other properties:Foo.bar
would suggest creating a field (or possibly @Property method).Foo.Bar
would suggest creating an inner class.Steps to reproduce:
Create a Python file:
Focus
bar
on line 5Press Ctrl-.
The text was updated successfully, but these errors were encountered: