Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ: changing color of an unused variable

How do I change the color of unusedField or an unused variable in IntelliJ? In Color scheme when I click on unusedField nothing happens. I was expecting IDEA to show me the default color settings (or show where it is derived from) but nothing happens. Screenshots illustrates the situation when I click on unusedField.

enter image description here

like image 532
naimdjon Avatar asked Mar 14 '18 11:03

naimdjon


People also ask

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

Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme. Use the Scheme list to select a color scheme.

How do I delete unused variables in IntelliJ?

In IntelliJ, in a . java file, some unused code is greyed out indicating that the declared variable or function is never used. Unused imports are removed using Ctrl+Alt+O.

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

Open the Preferences window. In the left sidebar, click on the node labeled Editor. Under Editor, click on the node labeled Colors & Fonts, then the sub-node, Language Defaults. If you're using a default color scheme, click the button labeled Save As, as PyCharm won't let you overwrite built-in color schemes.

How do I change my appearance in IntelliJ?

Change the UI theme In the Settings/Preferences dialog ( Ctrl+Alt+S ), select Appearance & Behavior | Appearance. Select the UI theme from the Theme list: IntelliJ Light: Traditional light theme for IntelliJ-based IDEs.


1 Answers

Just edit the color after "Foreground" in the screenshot:

image

like image 53
ice1000 Avatar answered Oct 09 '22 23:10

ice1000