0
votes

I have tried every suggestion I could find, but I can't get my code to get indented with tabs.

java -> code style -> formatter -> edit -> indentation -> "use spaces to indent wrapped lines" is unchecked and policy is set to tab only.

general -> editors -> text editors -> "insert spaces for tabs" is unchecked.

Still eclipse replaces my tabs with spaces and does auto-indentation with spaces.

I am slowly going insane

(eclipse luna)

1
Did you format the code after these changes. I mean Select All (Ctrl+A) and format (Ctrl+Shft+F)Balaji Katika
Yes, I did. Still, spaces instead of tabslogos
"I am slowly going insane" - You're becoming a real programmer then.Maroun
Which editor? What are you trying to edit?Aleksandr M

1 Answers

0
votes

The answer to my question can be found here : How can I get Eclipse to insert tabs instead of spaces for Java content assist?

It appears to be a bug in Eclipse, currently.