在当前包下,是可以正常补全的。
![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,
}
```