I am using Eclipse 3.7SR2 and I have an issue with the Java editor spell-checker marking e-mail addresses:
Perhaps I am a bit obsessive, but I really dislike seeing those red blots - if not for any other reason, then just because real spelling errors could be missed in the crowd.
Is there a way to fix this on a permanent basis without disabling spell-checking completely?
Adding the "word" in question (e.g.
@example.com) to the user dictionary manually and restarting Eclipse does not seem to solve this issue.
preguntado el 10 de marzo de 12 a las 00:03
It is possible to get Eclipse to ignore email addresses using a User Dictionary:
- Utilice la herramienta Ventana -> Preferencias
- Expand the panels to see General > Editores > Editores de texto > Ortografía.
- En los Diccionario definido por el usuario field, enter a full path for a text file you'd like to keep the dictionary in. Or use the Browse... button if you already have a text file somewhere.
- Edit the file you have just specified in a text editor, and enter the two parts of the email address on separate lines; eg, for the example in this question, you would need to add "john" and "example.com".
- Repeat for any new email domains or user names that the spell checker flags.
This solution is not obvious because the spell checker highlights the "@" symbol too. But if "@example.com" is added to the dictionary, it does not stop the spell checker from complaining. You have to manually add the domain excluding the "@".
Um, i can't find one. On the other hand, an inelegant solution would involve putting a capitalisation in the email address.
So email@example.com will get the error, but bharal@gMail.com will not. Or bharal@Gmail.com, which reads better.