Skip to content

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

@Delgan

Description

@Delgan

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions