MaskRay / vscode-ccls

ccls plugin for Visual Studio Code
122 stars 37 forks source link

Highlight settings for inactive macros #109

Closed elegracer closed 3 years ago

elegracer commented 4 years ago

Inactive macros are strange (different background color of inactive macros with other blocks).

image

I couldn't find any settings for this. The highlight for macro is only for active ones. Is there any solution? Thank you!

The vscode settings are:

{
    "ccls.cache.directory": "${workspaceFolder}/build/.ccls-cache",
    "ccls.misc.compilationDatabaseDirectory": "${workspaceFolder}/build",
    "ccls.completion.caseSensitivity": 1,
    "ccls.completion.detailedLabel": true,
    "ccls.completion.duplicateOptional": true,
    "ccls.completion.enableSnippetInsertion": true,
    "ccls.highlight.type.face": ["enabled", "color: #56B6C2"],
    "ccls.highlight.typeAlias.face": ["type"],
    "ccls.highlight.enum.face": ["enabled", "color: #5f89c9"],
    "ccls.highlight.namespace.face": ["enabled", "color: #e8d154"],
    "ccls.highlight.macro.face": ["enabled", "color: #e8d154"],
    "ccls.highlight.global.face": ["enabled", "fontWeight: 600", "color: #c44343"],
    "ccls.highlight.member.face": ["enabled", "textDecoration: underline dotted", "color: #bf6239"],
    "ccls.highlight.static.face": ["enabled", "fontStyle: italic"],
    "ccls.highlight.function.face": ["enabled", "color: #54a7ff"],
    "ccls.highlight.variable.face": ["enabled", "color: #bec4cf"],
    "ccls.highlight.memberFunction.face": ["function", "member"],
    "ccls.highlight.staticMemberFunction.face": ["function", "member", "static"],
    "ccls.highlight.globalVariable.face": ["variable", "global"],
    "ccls.highlight.staticVariable.face": ["variable", "static"],
    "ccls.highlight.memberVariable.face": ["variable", "member"],
    "ccls.highlight.staticMemberVariable.face": ["variable", "static", "member"],
    "ccls.highlight.parameter.face": ["variable", "color: #7672b3"],
}
Crazyokd commented 3 months ago

Hi, @elegracer Did you finally find the right program?