-
Notifications
You must be signed in to change notification settings - Fork 449
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
Automatically trigger auto-import on paste #1075
Comments
Somewhat related issue: microsoft/vscode#66236 |
Issue redhat-developer#1075 New preference: java.paste.organizeImportsOnPaste Signed-off-by: Nikolas Komonen <[email protected]>
Issue #1075 New preference: java.paste.organizeImportsOnPaste Signed-off-by: Nikolas Komonen <[email protected]>
The new feature is enabled via the |
Sorry for asking here, but is there a way to enable this just from typing in general? I added a field and got a cannot be resolved error. Normally I would hover and do quick-fix, but I noticed selecting the line, and then copying and pasting the line over itself imports the missing class. |
@Palidino you can either press |
When pasting some code snippets into an empty class file, it'd be nice if auto-import was triggered automatically. I'm not sure vscode exposes APIs to hook into the paste action. It looks like other extensions do it in a very hacky way (hijack the general paste command).
Anyways, I thought it could be an interesting feature.
@snjeza could please look into it and report about potential implementations?
The text was updated successfully, but these errors were encountered: