Home > Mobile >  Why vscode removes golang script when doing save
Why vscode removes golang script when doing save

Time:02-25

I'm having trouble here when I want to save my golang project, where when I want to import "fmt" then I save the "fmt" script it disappears. then how do i fix it

setting.json (vscode) :

{
    "workbench.startupEditor" : "newUntitledFile",
    "workbench.iconTheme" : "vscode-icons",
    "security.workspace.trust.untrustedFiles": "open",
    "editor.suggestSelection" : "first",
    "vsintelllicode.modify.editor.suggestSelection":"automatically",
    "workbench.colorTheme":"Material Theme Ocean",
    "vsicons.dontShowNewVersionMessage":"true"
}

CodePudding user response:

You usually don't need to manually add imports. Write fmt.Println(1) and see if it keeps it.

  • Related