liviuschera / noctis

Noctis is a collection of light & dark themes with a well balanced blend of warm and cold colors
https://marketplace.visualstudio.com/items?itemName=liviuschera.noctis
MIT License
564 stars 73 forks source link

REQUEST: What dose source.go mean in scope of textMateRules #36

Closed llianc62 closed 4 years ago

llianc62 commented 4 years ago

Noctis is really nice and beautiful. I use it in vscode. I wanna change some colors of codes in golang. I found source.go in settings.json can influence specific types of golang displays. But struct declarations are no exactly handling.

What can I do could it display the color I expect.

liviuschera commented 4 years ago

Thanks for your feedback mate. I'm not really sure what is what your are asking. Could you, please, provide some code samples and start from there?

Cheers!

llianc62 commented 4 years ago

I found source.go in settings.json of vscode like :

{
    "scope": "source.go keyword",
    "settings": {
        "foreground": "#xxxxx"
    }
}

I'm not sure that source.go is not defined by official right? I mean I wanna know what source.go affect here. Could I add more rules for displays golang code with the color i expect.

liviuschera commented 4 years ago

Go lang syntax is supported out of the box by VS Code and you can inspect the colour tokens by using Developer: Inspect TM Scopes command which can be activated by pressing CTRL + SHIFT + P on Windows and COMMAND + SHIFT + P on MacOS.

I'm not sure if this answers your questions, but here you can find more info that might more pertinent to what you are looking: How to get access to Developer: Inspect TM Scopes data? [duplicate]