Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change variable name color?

Tags:

pycharm

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.

like image 378
Robert Brax Avatar asked Jul 29 '15 16:07

Robert Brax


People also ask

How do you change the color of a variable?

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.

How do you change the color of a variable in Python?

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.

How do I change the color of a variable in Vscode?

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.


1 Answers

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

like image 137
Robert Brax Avatar answered Oct 22 '22 17:10

Robert Brax