Seemlessly convert between spaces and tabs in editor

I like tabs for indenting. My colleague likes two spaces for indenting.

Is there a setting where, when I open a file in the editor, the spaces are converted to tabs, and when I save the file, the tabs are converted back to spaces?

Or alternately, do you have another suggestion?

The biggest problem with using two spaces  is that it isn't enough white space for me to easily see the indentation. I need 4 spaces worth of indentation to tell what's lined up at a glance.

Please sign in to leave a comment.