-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Feature Request: generate imports when copying code between files #66236
Comments
(Experimental duplicate detection) |
Needs api proposed in #30066 |
This feature is amazing in Webstorm / IntelliJ. It's one of the biggest things I miss coming from there. I was actually doing some research into how pasteboard works in macOS at least (and the metadata that can live in it. formatting etc.). It's complicated. I think it might be possible to keep that metadata in vscode though and make the implementation easier to be cross OS usable:
I might see if I can pull this off as I love the direction of vscode but I sorely need this to reach the productivity I've enjoyed in IntelliJ... |
This comment was marked as spam.
This comment was marked as spam.
I've been wondering about this every now and then and today finally decided to search for a way to do this on the web. This would really be a cool thing to have. I was actually thinking of simply triggering the import all missing modules code action after paste if that's somehow possible. Otherwise it's just a few more keystrokes but still ^^' |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
Opened microsoft/TypeScript#50187 to track this upstream |
In eclipse Java editing, copying a code snippet from a class to another also automatically copies the imports required by the copied code.
Would be nice to have this in VS Code for typescript as well. Currently when I copy some code, I have to manually resolve the imports afterwards.
The text was updated successfully, but these errors were encountered: