Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command for go mod init {moduleName} #1449

Closed
suzmue opened this issue Apr 22, 2021 · 1 comment
Closed

Add command for go mod init {moduleName} #1449

suzmue opened this issue Apr 22, 2021 · 1 comment

Comments

@suzmue
Copy link
Contributor

suzmue commented Apr 22, 2021

When starting a new Go project in VSCode. The first step is to create a go.mod file if there isn't already one. This currently requires navigating to the terminal and running go mod init moduleName. It would be easier to have a command that you can run from the command prompt that will activate the Go extension, and create the go.mod in the workspace folder.

This command could be easily suggested / run by the extension to help users when they are encountering errors because they are missing go.mod.

@gopherbot gopherbot added this to the Untriaged milestone Apr 22, 2021
@gopherbot
Copy link
Collaborator

Change https://golang.org/cl/312092 mentions this issue: package.json: add command to run 'go mod init'

@suzmue suzmue modified the milestones: Untriaged, v0.25.0 Apr 22, 2021
@golang golang locked and limited conversation to collaborators Apr 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants