Binaryify / OneDark-Pro

Atom's iconic One Dark theme for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=zhuangtongfa.Material-theme
MIT License
1.52k stars 289 forks source link

How to change python function-calls to italics #457

Closed AndrewLaganaro closed 4 years ago

AndrewLaganaro commented 4 years ago

I'm trying to change the python function declaration, the "def" into italics on this Vscode theme. Currently the theme italics the keywords "import" and all the flow control keywords "if, else, return, continue" etc.

To try to get the functions also in italics I tried to use the "keyword.declaration.function.python", however it is not working using this. Does anyone know how to get around this? I found some reference about the keyword namings on this site: https://www.sublimetext.com/docs/3/scope_naming.html but even that didn't seem to help, as it still doesn't works at all.

I only have basic knowledge of CSS and I don't know if I'm going the right way to change this. I've tried a bunch of combinations and surely I Am doing something wrong... image

I've created this one hoping it would work. It also didn't image

image

Thanks in advance.

Binaryify commented 4 years ago

please read https://binaryify.github.io/OneDark-Pro for example image image

 "editor.tokenColorCustomizations": {
    "[One Dark Pro]": {
      "textMateRules": [
        {
          "scope": [
            "storage.type.function.python"
          ],
          "settings": {
            "fontStyle": "italic"
          }
        }

      ],
    },
  },

image

AndrewLaganaro commented 4 years ago

Thanks, It totally Works!

I didn't know there was this page about the theme. So thanks for pointing It out!

Binaryify commented 4 years ago

glad to help you