Exclude Items from Auto-imports and Completion

Exclude certain paths from auto-import and completion.

Exclude undesired imports from being automatically imported or added to a completion list.

In Settings/Preferences | Go | Imports you can add as many as you want import statements that will be excluded from code completion and auto-import.

Related Resources

Code Completion in Language Injections
Code Completion in Language Injections
See how to use code completion inside strings and other places.
Completion for non-imported Go Modules
Completion for non-imported Go Modules
Import a module in to your project.
Completion with the Tab key
Completion with the Tab key
A small, but handy feature that makes it a little easier to complete symbol names.