Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better python percent formatting colour. #287

Open
voney opened this issue Feb 4, 2023 · 0 comments
Open

Better python percent formatting colour. #287

voney opened this issue Feb 4, 2023 · 0 comments

Comments

@voney
Copy link

voney commented Feb 4, 2023

Currently formatting placeholders in python strings are almost the same color as the rest of the string.

On my local setup I've overridden the default colour using the below settings, it makes the formatting much easier to read and I think it fits with the rest of the theme cleanly.

"editor.tokenColorCustomizations": {
    "[SynthWave '84]": {
       "textMateRules": [{
        "scope": "constant.character.format.placeholder.other.python", "settings": {
            "foreground": "#c283fe",
            "fontStyle": "bold"
        }
       }]
    }
}

If you want to try it out, here's a python log formatter line where the difference between the formatting and string is almost indecernable by default.

formatter = logging.Formatter(
    "[%(asctime)s] PID:p%(process)s {%(pathname)s:%(lineno)d} %(levelname)s - %(message)s",
    "%m-%d %H:%M:%S",
)

I'm not entirely sure how I would implement this into the theme, but I humbly submit it as a suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant