Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change whitespace symbols / glyphs in Eclipse

Tags:

eclipse

Is there any way to change the symbols that Eclipse uses to represent whitespace characters? For example, I'd like to customise the newline glyph "¶" to something more like Notepad++ style "LF".

I know how to toggle them on and off and change the font, transparency, etc. But I haven't found any setting to actually change the symbols.

like image 632
pedj Avatar asked Nov 01 '25 12:11

pedj


1 Answers

No. This kind of customization is not given. These options are hard coded in org.eclipse.jface.text.WhitespaceCharacterPainter class.

Need to tweak the source code to change whitespace, tab sign symbols etc.


  private static final char SPACE_SIGN= '\u00b7';
  private static final char IDEOGRAPHIC_SPACE_SIGN= '\u00b0';
  private static final char TAB_SIGN= '\u00bb';
  private static final char CARRIAGE_RETURN_SIGN= '\u00a4';
  private static final char LINE_FEED_SIGN= '\u00b6';

Also you can raise a eclipse bugzilla enhancement request here to implement it.

like image 73
Chandrayya G K Avatar answered Nov 04 '25 20:11

Chandrayya G K



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!