Tab and spaces are mix used on same projects.
I need to code indentation but do not replace tab with spaces and vice versa. I only need to indent code (new indentation with space or tabs does not matter).
Eclipse IDE is used but plugin or other tools are welcome.
P.S I know that at same project same white space strategy (tab or white) using is better.
As an example \t --> tab \b --> space. I think need to some property that how many space equals to tab 1 character. For our example 4.
Before
void foo() {
\b\b\btest1(); // 3 spaces
\ttest2(); // 1 tab
}
After
void foo() {
\b\b\b\btest1(); // 4 space (1 extra space to be indent correctly)
\ttest2(); // 1 tab (do not change tab char with spaces because of that has correct indentation)
}