使用自制软件安装 golang 后,我在 vscode 中看到下面的屏幕截图错误,并且 IntelliSense 无法正常工作。 我不知道如何解决这个问题,任何帮助都会很棒。
仅供参考:我确实在 vscode 中安装了所有为 golang 推荐的扩展。
vs 代码
<块引用>设置.json
{
"workbench.iconTheme": "vscode-icons",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"workbench.colorTheme": "One Dark Pro",
"tabnine.experimentalAutoImports": true,
"editor.fontSize": 18,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"workbench.editorAssociations": {
"*.ipynb": "jupyter.notebook.ipynb"
},
"cSpell.userWords": [
"Aditya",
"Bluespacelabs",
"Formik",
"Highcharts",
"Kumar",
"Palin",
"semibold"
],
"[dart]": {
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.rulers": [
80
],
"editor.selectionHighlight": false,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.suggestSelection": "first",
"editor.tabCompletion": "onlySnippets",
"editor.wordBasedSuggestions": false
},
"gitlens.advanced.messages": {
"suppressImproperWorkspaceCasingWarning": true
},
"editor.tabSize": 8,
"editor.cursorStyle": "line",
"editor.insertSpaces": false,
"editor.lineNumbers": "on",
"editor.wordSeparators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-",
"editor.wordWrap": "off",
"diffEditor.wordWrap": "on",
"json.schemas": [
{
"name": "vscode-expo-manifest",
"url": "file:///Users/adityakumar/Library/Application%20Support/Code/User/globalStorage/bycedric.vscode-expo/manifest-42.0.0.json",
"fileMatch": [
"app.json",
"app.config.json"
]
}
],
"eslint.format.enable": true,
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
}
}