python-docstring-highlighter icon indicating copy to clipboard operation
python-docstring-highlighter copied to clipboard

How to apply style customization without changing the VS Code theme color?

Open Delgan opened this issue 1 year ago • 0 comments

Hi.

Thanks for this extension. I've recently been working with Google style for docstrings, which produces very condensed and not very readable documentation, as opposed to the Numpy style. It made me realize how much of a must-have this extension was. I can't believe Microsoft didn't add this feature natively.

However, I would like to customize the theme to make the highlighting more subtle and easier to distinguish from the actual code. For example, by applying only bold and underline style.

When I remove the foreground attribute, instead of using the default VS Code color, it the uses default extension colors:

"editor.tokenColorCustomizations": {
  "textMateRules": [
    {
      "scope": "docstring.heading.placeholder",
      "settings": {
        "fontStyle": "bold underline"
      }
    }
  ]
}

I'd like to be able to apply the style changes without having to hard-code the VS Code theme colors, so that the configuration is generic. Is this possible?

Delgan avatar Oct 17 '24 17:10 Delgan