Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom keyword color in Intellij

When there is a lot of code I would find it easier to get an idea of the structure of a program if keywords like new, null, true, int etc would have different colors than keywords that actually are responsible for structure like if, while etc.

Is it possible to color have custom colors for certain keywords? For example change the color of new and true in this picture?

Illustration of problem

like image 324
TomTom Avatar asked Mar 19 '15 17:03

TomTom


People also ask

How do I change text color in IntelliJ?

Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme | Language Defaults | Semantic highlighting. Select the Semantic highlighting checkbox and customize the color ranges if necessary.

How do I use custom themes in IntelliJ?

Change the UI themeIn 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. macOS Light or Windows 10 Light: OS-specific light theme available as a bundled plugin.

How do you make a terminal colorful in IntelliJ?

Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme. Select the setting pages related to consoles: Console Colors.

How do I highlight a variable in IntelliJ?

If you click in a symbol on your code, you can hit Ctrl+Shift+F7 , then it will highlight (High visible, not just like the default underline) all occurences of the symbol. Good thing is, if you move out the cursor of that symbol, it will keep it highlighted wherever you go.


1 Answers

No, it's not possible to change the color of certain keywords, other than by writing a plugin.

like image 199
yole Avatar answered Sep 27 '22 18:09

yole