Search code examples
colorsvisual-studio-codethemescolor-scheme

Change function parameters color


I'm trying to import my custom color scheme from Sublime to VSCode. I'm almost done but the only thing that I can't change is the color of parameters for a function.

enter image description here

$timeOut stays white between the parenthesis, no matter the scope I try. I tried meta.function.parameter.typehinted.php, meta.function.parameters.php.

The only one that "works" is variable.other.php. But unfortunately, it changes all the variables' color, not only the parameters' one.

Here is what I get when inspecting the TM Scopes:

enter image description here

Is there any way to change only the color of the function parameters?


Solution

  • After writing an issue on Github about it, a contributor gave me the correct scopes to use to change the color of the function parameters:

            {
            "name": "Parameters inside PHP function",
            "scope": [
                "meta.function.parameter variable",
                "meta.function.parameter punctuation.definition.variable.php"
            ],
            "settings": {
                "fontStyle": "italic",
                "foreground": "#ff8e30"
            }
        },