vscode,在当前包下面,自动补全正常使用。当跳转到第三方的包时,就不能自动补全了。?

bigxu · · 2406 次点击 · 开始浏览    置顶
这是一个创建于 的主题,其中的信息可能已经有所发展或是发生改变。

在当前包下,是可以正常补全的。 ![1.jpg](https://static.studygolang.com/210623/b5c723d0ac8d496481bc0cf9b82d7515.jpg) 当跳转到第三方的包时,就不能自动补全了。 ![2.jpg](https://static.studygolang.com/210623/114e4b63acac0495e1fa8e4174593ca1.jpg) ``` { "workbench.colorTheme": "Visual Studio Dark", //"editor.fontFamily": "'Cascadia Code',monaco, 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'", "editor.fontFamily": "'Cascadia Code', Consolas, 'Courier New', monospace", //"editor.fontLigatures": true, "editor.fontSize": 13, "terminal.integrated.fontSize": 13, "http.proxyStrictSSL": false, "shellformat.path": "/home/bigxu/soft/shfmt/shfmt_v2.3.0_linux_amd64", "files.autoSave": "onFocusChange", "editor.tabSize": 8, "shellformat.flag": "-i 4 -p", "workbench.sideBar.location": "left", "sync.removeExtensions": true, "sync.syncExtensions": true, "php.suggest.basic": false, "php.executablePath": "/usr/bin/php", "window.titleBarStyle": "custom", "terminal.integrated.rendererType": "dom", "[shellscript]": { "editor.defaultFormatter": "foxundermoon.shell-format" }, "editor.minimap.enabled": false, "sync.forceUpload": true, "editor.formatOnSaveTimeout": 5000, "editor.renderWhitespace": "none", "editor.renderControlCharacters": true, //// "go.coverOnSingleTest": true, "go.coverOnSave": true, //gometalinter "go.lintOnSave": "file", "go.autocompleteUnimportedPackages": true, //"go.inferGopath": true, "go.gocodePackageLookupMode": "go", "go.gotoSymbol.includeImports": true, "go.useCodeSnippetsOnFunctionSuggest": true, //"go.useCodeSnippetsOnFunctionSuggestWithoutType": true, "go.gotoSymbol.includeGoroot": true, "go.formatTool": "goimports", "go.useLanguageServer": true, // https://www.cnblogs.com/t0000/articles/13305565.html // https://www.cnblogs.com/zwjphp/p/14419285.html //"go.inferGopath": true, //"go.useCodeSnippetsOnFunctionSuggest”: true, //自动提示代码,代码自动补全 //"go.docsTool": "gogetdoc", //支持跳转到文件名含.路径等功能 //"go.inferGopath": true, //开启推断gopath的功能 //"go.gocodePackageLookupMode": "go", //代码包查询模式 //"go.gotoSymbol.includeImports": true // https://www.cnblogs.com/beilong/p/13253043.html "gopls": { "completeUnimported": true, "usePlaceholders": true, "completionDocumentation": true, "deepCompletion": true, "matcher": "fuzzy", "hoverKind": "SynopsisDocumentation" // No/Synopsis/Full, default Synopsis }, "go.languageServerExperimentalFeatures": { "diagnostics":true }, //// todo "todohighlight.keywords": [ "DEBUG:", "REVIEW:", { "text": "NOTE:", "color": "#ff0000", "backgroundColor": "yellow", "overviewRulerColor": "grey" }, { "text": "HACK:", "color": "#000", "isWholeLine": false }, { "text": "TODO:", "color": "red", "border": "1px solid red", "borderRadius": "2px", //NOTE: using borderRadius along with `border` or you will see nothing change "backgroundColor": "rgba(0,0,0,.2)" //other styling properties goes here ... } ], //"http.proxy": "http://127.0.0.1:43709", "socks.proxy": "socks://127.0.0.1:7070", "editor.rulers": [ 300, ], "[html]": { "editor.defaultFormatter": "vscode.html-language-features" }, "html.format.wrapLineLength": 0, "files.associations": { "*.html": "html", "*.tmpl": "html" }, "go.languageServerFlags": [], "go.testFlags": ["-v"], "php.validate.executablePath": "", "php-cs-fixer.executablePath": "${extensionPath}/php-cs-fixer.phar", "glassit.alpha": 240, "workbench.statusBar.visible": false, "window.menuBarVisibility": "default", "settingsSync.ignoredSettings": [ ], "go.toolsManagement.autoUpdate": true, "editor.wordWrap": "off", "window.zoomLevel": -1, "mssql.connections": [ { "server": "{{put-server-name-here}}", "database": "{{put-database-name-here}}", "user": "{{put-username-here}}", "password": "{{put-password-here}}" } ], "sync.gist": "cd725fa3e0e78b238cfd1132b55be73f", "settingsSync.ignoredExtensions": [ ], "editor.cursorStyle": "line", "editor.insertSpaces": false, "editor.lineNumbers": "on", "editor.wordSeparators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-", "[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "tabnine.experimentalAutoImports": true, } ```

有疑问加站长微信联系(非本文作者)

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

2406 次点击  
加入收藏 微博
2 回复  |  直到 2021-06-29 18:02:09
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传