class Foo:
def __init__(self):
byte_string = 'newline:\n also newline:\x0a'
In PyCharm, how do I change the color of variables like "byte_string" in the example above? I don't see any place to change this in the "Python" section of the color settings.
Editing Color Variables from the InspectorClick on Edit Variable and pick a new color. Choose Update to save. Keep in mind you can only edit Color Variables that are local to your document.
Navigate to Editor->Color Scheme->Language Defaults->Symantic higlighting to change the colors that the editor uses for variables. You'll probably need to save your own custom theme as mentioned in the Tutleman's comment.
In Visual Studio Code, use Ctrl + Shift + P and type settings. json to the field that shows up. After you type it, it should give you the settings.
Unbelievable but true, I was answered by Pycharm staff that it is NOT possible to set custom variable color. Please all vote on: https://youtrack.jetbrains.com/issue/PY-8246
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With