jasontheiler/kelp-forest-theme-vscode

Flow control code color

luki1412 opened this issue · 2 comments

Love the theme, but wanted to ask ... how can I change the color of flow control code like an If statement, for,foreach,switch etc. to a different color because in powershell these blend in with variable types.
colorissue

First of all, thank you!

To your issue:

You should be able to inspect editor tokens and scopes by opening the Command Palette menu (Ctrl+Shift+P or ⌘+Shift+P) and select Developer: Inspect Editor Tokens and Scope. You can then see information about the code syntax in a tooltip where your cursor is located.

inspect

textmate scopes shows all the available scopes.
foreground shows the currently used scope and the assigned color.

You can then go ahead and for example add the following to your settings.json to override theme settings:

"editor.tokenColorCustomizations": {
  "textMateRules": [
    {
      "name": "Keywords",
      "scope": ["keyword"],
      "settings": {
        "foreground": "#FF0000"
      }
    }
  ]
}

Thank you. Very helpful.
Resolved my issue.