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: 2
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: 2
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: 2
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 message
Juan Cruz Fandino is currently offline Juan Cruz FandinoFriend
Messages: 2
Registered: July 2018
Junior Member
Nice, that worked perfectly.
Thanks!
Previous Topic:Test OM2M
Next Topic:eclipse cannot recognize ${spring.version} in pom.xml properties, which lead to dependies fail
Goto Forum:
  


Current Time: Sat Aug 18 02:34:47 GMT 2018

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

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

Back to the top