Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: Make Tabs visible, Spaces invisible

Usually I'd like to edit files with Spaces only.

But when I open files with Tabs, I'd like to see them (for example as arrows ->). With such files I do my edits careful, so not to destroy the original authors coding style -- usually I insert tabs by hand when needed.

So, I want to see Tabs all the time, but using the General, Editors, Text Editors, Show Whitespace Characters option, I get distracted by all the whitespace-dots.

How can I reduce this distraction by Spaces, but at the same time see the Tabs?

  • Can I change the font color for the visualized whitespaces to a brighter color? currently they are medium gray, but I can not find an option to change that.
  • Or can I choose different setting for Tabs and for Spaces (and Paragraph signs, for that matter)?
  • The way I used to have it in my goo' ol' editor would be: Change the background color of Tab to light-yellow (without display the -> for tabs or the dots for Spaces). This makes Tabs wuite visible, without harming my "normal" source visualization. This would be my favorite. I did that by adding the Tab to be a keyword in all languages, and then change the keyword background color to a bright yellow.
like image 553
towi Avatar asked Nov 18 '10 12:11

towi


People also ask

How do I show spaces and tabs in eclipse?

Go to Window->Preferences->General->Editors->Text editors->Show whitespace->Configure visibility, then select checkbox for visible tabs (and trailing spaces). Newer versions of eclipse (from around version 3.5. 2): go to Window->Preferences->General->Editors->Text Editors, and select "Insert spaces for tabs".

How do I show indent lines in eclipse?

5-In your Eclipse IDE, Go to: Window → Preferences → General → Editors → Text Editors → Indent Guide 6-Then enable indent guide checkbox. 7-Enjoy !


1 Answers

According to the Eclipse 3.7M3 New and noteworthy you can customize the Show Whitespace Characters to show only tabs but not spaces.

Unfortunately the stable version of Eclipse 3.7 is expected in 2011 summer but if that feature is a 'must' for you you can try that milestone.

like image 149
Csaba_H Avatar answered Sep 21 '22 19:09

Csaba_H