Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode color theme function calls

I am doing my own local tweaks to this color theme for VSCode. The theme will be used to mainly code in Java and C++.

I would like function and method declaration color to be different from function and method invocation calls.

So the word Foo in the following two instances would be a different color...

public void Foo(String s, int d) {
}

someClass.Foo("blah" , 2);

Currently the block of code that is setting the color for functions in this is as follows

{
  "name": "Functions",
  "scope": "entity.name.function, meta.require, support.function.any-method",
  "settings": {
    "foreground": "#e26660"
  }
},

I would be ok if function invocation used the default foreground text color.

like image 556
Scorb Avatar asked Sep 28 '18 14:09

Scorb


People also ask

How do I change the color of my activity bar in VS Code?

Press Control + Shift + P when you just open Visual Studio Code and type "open settings(UI)" and search for window. titleBarStyle and change the option from native to custom so that you can restore the colour of status bar from white to black.


1 Answers

For function call set color for the following scopes add the folowing settings:

{
  "name": "Function call",
  "scope": "meta.function-call.generic, meta.function-call.object, meta.function-call.static",
  "settings": {
    "foreground": "#e26f60"
  }
}, 

also, you might be able to set the color for only CPP by setting the scope of

meta.function-call.cpp
like image 127
Bradia Avatar answered Oct 11 '22 02:10

Bradia