Search code examples
pythonpycharmsyntax-highlighting

Pycharm: How to adjust color of variable/syntax highlighting?


I'm not entirely sure if it's called syntax highlighting, but when I have my cursor over certain words in the editor, it will highlight other occurrences of it. The problem is, with the theme I'm using (warm neon), the highlighting is quite blinding on my screen. To be clear, I'm not talking about selecting text with the cursor, I mean when I have my cursor in the middle of certain words, it will change the background and font color of that word, and do so with other occurrences.

How do I adjust the color? I can't seem to figure it out in Preferences.


Solution

  • These are defined in the the Colors and Fonts dialog.

    Go to File -> Settings -> Editor -> Colors and Fonts

    You will want to look under General. The specific ones you are looking for are Identifier under caret and Identifier under caret (write)

    PyCharm colors