How do I change the color of variables in for-loop declarations in IntelliJ IDEA?

LuminousNutria :

I can change the colors of other types of code, including other types of variables, but I don't know the specific name of the variable that appears in for-loop declarations, and I can't find a for-loop in the example code.

for (int i = 0; i < arr.length; i++) {
  // do something
}

How can I change the color of the i that appears here in IntelliJ IDEA?

TheChubbyPanda :

Editor > Color Scheme > Language Defaults

Then, the only type that the i in a for loop falls under is Identifiers > Reassigned Local Variable. Problem is, this changes any local variable that's reassigned, so not feasible.

The only way you're getting this to happen is by submitting a usability request... sorry.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=327861&siteId=1