Skip to content
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

add code action to update existing import statements. #6818

Open
heejaechang opened this issue Jan 4, 2025 · 0 comments
Open

add code action to update existing import statements. #6818

heejaechang opened this issue Jan 4, 2025 · 0 comments

Comments

@heejaechang
Copy link
Contributor

heejaechang commented Jan 4, 2025

add code action that let users to update import statement.

from module import A, B

A()
B()

to

import module

module.A()
module.A()

also, if possible, let pylance to find good abbr for module and also suggest that will convert the code to

import module as m

m.A()
m.B()

that also understand well known abbr such as np, pd and etc.

...

also, if possible, add new option such as always use 'import' statement instead of 'from xxx import' and add/auto import always add import statement with module.A form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant