英文:
The option formatting.local in vscode-go its working?
问题
我正在使用vscode-go扩展,并阅读选项时,我发现存在formatting.local
选项,但是这个选项似乎不起作用,我尝试配置如下...
settings.json
"go.formatTool": "goimports",
"go.formatting.local": "github.com/mycompany/my_app"
可能出了什么问题?
英文:
I'm using vscode-go extension and reading the options I see than exist the formatting.local
option but this option seems not be working Im trying to configure like this...
settings.json
"go.formatTool": "goimports",
"go.formatting.local": "github.com/mycompany/my_app"
What could be wrong?
答案1
得分: 2
"formatting.local"是gopls的设置。https://github.com/golang/vscode-go/blob/master/docs/settings.md#settings-for-gopls 所以,请暂时将其添加到"gopls"
块中。
"gopls": {
"formatting.local": "github.com/mycompany/my_app"
}
英文:
"formatting.local" is a gopls setting. https://github.com/golang/vscode-go/blob/master/docs/settings.md#settings-for-gopls So, please add it inside the "gopls"
block for now.
"gopls": {
"formatting.local": "github.com/mycompany/my_app"
}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论