Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

开启golang inlay hints #2

Open
wklken opened this issue Jul 20, 2022 · 0 comments
Open

开启golang inlay hints #2

wklken opened this issue Jul 20, 2022 · 0 comments

Comments

@wklken
Copy link
Owner

wklken commented Jul 20, 2022

开启教程: https://twitter.com/golang/status/1549106172870987776

配置成 jetbrains一致的配色

{
    // 编辑区域配色 color like jetbrains
    "workbench.colorCustomizations": {
        "editor.background": "#2b2b2b",
        "editorGutter.background": "#313335",
        "sideBarSectionHeader.background": "#4d5254",
        "sideBar.background": "#3b3f41",
        "statusBar.background": "#00605f",
        "terminal.foreground": "#678046",
        "terminal.ansiBrightBlue": "#2F7ECD",
        "terminal.ansiBrightGreen": "#d37e02",
        "terminal.background": "#242424",
        "editorInlayHint.parameterBackground": "#3A3A3A",
        "editorInlayHint.parameterForeground": "#7C7C7C",
    },

    // golang开启
    "go.inlayHints.compositeLiteralTypes": true,
    "go.inlayHints.constantValues": true,
    "go.inlayHints.functionTypeParameters": true,
    "go.inlayHints.parameterNames": true,

    // 字体比正常14 小, 用于区分
    "editor.inlayHints.fontSize": 12
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant