I'm learning golang with latest VSCode, golang plugin and latest golang version.
Goland doesnt let you have unused stuff - for example variable and imports.
Is there a way in VSCode to bypass that?
Thank you :)
I'm learning golang with latest VSCode, golang plugin and latest golang version.
Goland doesnt let you have unused stuff - for example variable and imports.
Is there a way in VSCode to bypass that?
Thank you :)
You need to comment that out. The go toolchain won't allow you to keep it and that's a good thing.
vs code only removes / adds imports / variables after saving the file so not saving while the variables are not used should solve the problem.
If this is not the case for you you should be able to change this in the settings menu.