Eclipse: view a document using custom spacing, save using the file's spacing

Posted by Steven Sproat on Stack Overflow See other posts from Stack Overflow or by Steven Sproat
Published on 2010-03-19T11:32:26Z Indexed on 2010/03/19 12:21 UTC
Read the original article Hit count: 275

Filed under:

I have a silly use case for eclipse:

At work, they use 2 spaces for a tab character. Indentation looks really squashed and I'm finding it obstructs readability.

Now, I can't set Eclipse to use 4 spaces for a tab as it'll edit any files I change, and obviously don't want to violate the coding standards.

So, can I have a custom view onto my document, with saving maintaining the original spacing?

Cheers

© Stack Overflow or respective owner

Related posts about eclipse