When you cut/copy some code from a file and paste it into another, it would be VERY nice if the import statements were
This issue is not really a defect, as copy/paste actions aren't supposed to do anything like this, it is more an
enhancement. I think the priority is very low though. You can simply invoke "Fix Imports" action by pressing
Ctrl+Shift+I, which will add new imports and remove unused imports...
I tried to implement this for Java in changeset:
Integrated into 'main-golden'
User: Jan Lahoda <email@example.com>
Log: #155422: transferring types through copy&paste.