How do I init a module from vscode

I know from the command line you do go mod init main.go
Is there a way to do the same thing inside vscode.

1 Like

I’m not sure if there is a button inside vscode that will do this for you, but you can use the built in terminal to run go mod init main.go without leaving vscode.

just hit control + ` to open the integrated terminal in vscode.

Sorry this probably isn’t what you’re looking for, but just in case you didn’t know about this :grinning:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.