Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How do I change the color of the keyword "var" in Java10?
How do I change the color of the keyword "var" in Java10? [message #1792235] Fri, 13 July 2018 06:09 Go to next message
dwing heven is currently offline dwing hevenFriend
Messages: 3
Registered: July 2018
Junior Member
the new keyword "var" in Eclipse Java Editor (4.8.0) is always printed as bold brown.
How do I change the color and remove the bold effect?
I can not find it in "Syntax Coloring" in preferences.
Re: How do I change the color of the keyword "var" in Java10? [message #1792377 is a reply to message #1792235] Mon, 16 July 2018 15:28 Go to previous messageGo to next message
Juan Cruz Fandino is currently offline Juan Cruz FandinoFriend
Messages: 3
Registered: July 2018
Junior Member
Hi, I'm also experiencing the same problem. The var word looks dark purple (precisely #730155). When I combine this with a dark gray background it's very unpleasant on the eyes.

I noticed that when I switch themes it looks good for a short moment and then becomes purple. It seems that it's not the syntax coloring that's causing the problem but the grammar coloring that is overriding and causing the problem.
This makes sense after reading this issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=532313
However it claims it has been solved.
Maybe this is a different issue?
Re: How do I change the color of the keyword "var" in Java10? [message #1792472 is a reply to message #1792377] Wed, 18 July 2018 11:29 Go to previous messageGo to next message
dwing heven is currently offline dwing hevenFriend
Messages: 3
Registered: July 2018
Junior Member
Thank you for your reply.
I have tried to add these lines into preferences file and import it, then it works!
/instance/org.eclipse.jdt.ui/semanticHighlighting.varKeyword.bold=false
/instance/org.eclipse.jdt.ui/semanticHighlighting.varKeyword.color=0,255,255
/instance/org.eclipse.jdt.ui/semanticHighlighting.varKeyword.enabled=true


However, there is still no way to change these properties in GUI dialog.
Maybe another bug.
Re: How do I change the color of the keyword "var" in Java10? [message #1792953 is a reply to message #1792472] Thu, 26 July 2018 12:37 Go to previous messageGo to next message
Juan Cruz Fandino is currently offline Juan Cruz FandinoFriend
Messages: 3
Registered: July 2018
Junior Member
Nice, that worked perfectly.
Thanks!
Re: How do I change the color of the keyword "var" in Java10? [message #1816761 is a reply to message #1792953] Wed, 06 November 2019 12:36 Go to previous message
Juan Cruz Fandino is currently offline Juan Cruz FandinoFriend
Messages: 3
Registered: July 2018
Junior Member
Resurrecting the thread because this stopped working after upgrading to 2019-09.
I find no option to set the color myself and importing the .epf doesn't find any preference.

Anybody experienced the same issue?
Previous Topic:Reverse Engineering (Java to Sequence Diagram)
Next Topic:Eclipse workspace select
Goto Forum:
  


Current Time: Fri Apr 19 18:58:08 GMT 2024

Powered by FUDForum. Page generated in 0.08320 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top