Skip to content

how to distinguish a variable from static,local,global with token #8208

Answered by Colengms
cloud-yu asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @cloud-yu . The C/C++ extension will emit semantic tokens for local and global variables, but it don't believe it currently identifies static variables. I would suggest opening a feature request (as an issue).

Customizing the colorization of local and global could be done using a setting, like so:

    "editor.semanticTokenColorCustomizations": {
        "rules": {
            "*.global": "#ff0000",
            "*.local": "#ff00ff"
        }
    },

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cloud-yu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants