robb0wen / synthwave-vscode

Synthwave inspired colour theme for VS Code 🌅🕶
MIT License
5.14k stars 1.18k forks source link

Better python percent formatting colour. #287

Open voney opened 1 year ago

voney commented 1 year ago

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.