命令记不住

登陆

IDE 工具

IDE工具

1.Goland更换主题

Settings-Plugins

  • 打开goland的preference, 搜索一下 plugin, 切换到marketplace面板
  • 发现有一个下载量巨多的 Meterial Theme UI, 安装重启
  • 再到theme下面,就可以看到很多主题

2.Goland添加fmt import

点击Settings -> Tools -> File Watchers,点加号添加一个go fmt模版

3.VSCode设置中文

  • Ctrl+Shift+P
  • configure language

4.Goland调整字体

1.调节页面字体

File->Settings->Editor->Font

2.调节代码编辑区字体

Setting->Editor->Color Scheme->Console Scheme Font

3.调节terminal区字体

Setting->Editor->Color Scheme->Console Font

4.通过鼠标字体进行放大缩小

Settings -> Editor -> General -> Change font size with Ctrl + Mouse Wheel

5.VSCode配置setting.json

自动补全功能:

{
    "go.formatTool": "goimports",
        "go.useLanguageServer": true,
        "timeline.excludeSources": [],

        "[go]": {
            "editor.snippetSuggestions": "none",
            "editor.formatOnSave": true,
            "editor.codeActionsOnSave": {
                "source.organizeImports": true
            }
        },
        
        "gopls": {
            "completeUnimported": true,
            "usePlaceholders": true,
            "completionDocumentation": true,
            "deepCompletion": true, 
            "matcher": "fuzzy",
            "hoverKind": "SynopsisDocumentation" // No/Synopsis/Full, default Synopsis
        },
        
        "files.eol": "\n", // formatting only supports LF line endings


        "go.languageServerExperimentalFeatures": {
            "format": true,
            "autoComplete": true,
            "rename": true,
            "goToDefinition": true,
            "hover": true,
            "signatureHelp": true,
            "goToTypeDefinition": true,
            "goToImplementation": true,
            "documentSymbols": true,
            "workspaceSymbols": true,
            "findReferences": true,
            "diagnostics": false
        },
        "emmet.excludeLanguages": [
        
            "markdown"
        ],
        "go.addTags": {
        
        }
    }

go

推荐阅读