How to prevent the plugin from removing unused imports? (UnusedImport) #1672
ErnestoBorio
started this conversation in
Discussions
Replies: 1 comment 1 reply
-
You will need to use:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I tried using these settings but none seems to work and I have no idea what setting is removing unused imports on save.
Any ideas?
It's ok that unused imports are errors and that go won't let me run or build with these kinds of errors, but I don't want it to delete the imports from the code because when I'm in the middle of coding I need to add the import statement first and then use its declared symbols, and it's silly to try and find workarounds like commenting the import line or not saving until I use it at least once.
Beta Was this translation helpful? Give feedback.
All reactions