其他分享
首页 > 其他分享> > 242.go 升级之后代码提示失效问题

242.go 升级之后代码提示失效问题

作者:互联网

关于go升级到go1.18.4之后代码提示失效问题

附上我自己的settings文件, 应该也是复制别人的

{
    "python.pythonPath": "D:\\VMWare\\anaconda\\pythonw.exe",
// 应用程序路径配置
"go.gopath":"F:\\go_dev", // 其实gopath随意,自己定义一个纯字母的路径和文件夹就行。
"go.goroot":"E:\\go1.8.4",
"git.path": "D:/常用软件/Git\bingit.exe",
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
// 不知道是什么的配置
"window.zoomLevel": 0,
"workbench.statusBar.visible": true,
"workbench.iconTheme": "vscode-icons",
"editor.multiCursorModifier": "alt",
"editor.columnSelection": false,
// go插件配置项
"go.formatTool": "goimports",
"go.useLanguageServer": true,      //这个是开启gopls工具的 *重点
"go.docsTool": "gogetdoc",			// 这个是代码提示的 *重点
"editor.wordWrap": "on",
"editor.minimap.renderCharacters": false,
"editor.minimap.enabled": false,
"terminal.external.osxExec": "iTerm.app",
"go.testFlags": ["-v","-count=1"],
"go.buildTags": "",
"go.lintFlags": [],
"go.vetFlags": [],
"go.coverOnSave": false,
"go.useCodeSnippetsOnFunctionSuggest": true,
"go.autocompleteUnimportedPackages": true,
"go.formatOnSave": true,
"debug.console.fontSize": 16,
"debug.console.lineHeight": 30,
"explorer.confirmDelete": false,
"[go]": {},
"files.autoSave": "afterDelay",
"go.toolsManagement.autoUpdate": true,
"go.useCodeSnippetsOnFunctionSuggestWithoutType": true,
"diffEditor.ignoreTrimWhitespace": false,
"go.alternateTools": {
}
}

标签:false,settings,vscode,editor,242,go,失效,true
来源: https://www.cnblogs.com/liuzhanghao/p/16522705.html