When a code has duplicates in imports, the Imports organizer doesn't remove them, producing errors. Example:
Could you please fix this? Thanks!
Imports organizer doesn't remove duplicates
Sorry, wrong tag, this is about VS Code extension.
5 days later
The duplicates appear when I'm copying a function from one class to another, which has a lot of includes, so, to not resolve them one by one separately, I just copy-paste all the "use" section from the source file and paste to the target, and facing this issue.
good point, yes, we're removing unused imports only;
Removal of duplicate imports - adding to our to-do.
JakubMisek added the Visual Studio tag.
5 months later
Sort code action removes duplicates now - available in the next update.
Thanks!
JakubMisek added the Solved tag.