Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I type a literal tab character in Eclipse?

I feel very silly asking this question, but here goes. :)

I've configured Eclipse to insert spaces instead of tabs, but I'm working on a Makefile, which requires literal tab characters (see Can you make valid Makefiles without tab characters? for a good explanation).

So how do I type one, short of opening the Text Editors preferences, unticking the "Insert spaces for tabs" option, clicking Apply, and then undoing all of that when I'm done editing the makefile?

like image 907
Josh Glover Avatar asked Apr 07 '11 05:04

Josh Glover


1 Answers

Only way I can find to do it in Eclipse (version=Juno) was to type say XXX where I wanted the tab character and then do a find/replace. Switch on regexp matching in the find and put XXX as find with \t as the replace. Painful but works.

like image 103
fruitcakegsi Avatar answered Sep 21 '22 13:09

fruitcakegsi