When indenting a block of code in Kate (3.11.2), spaces used for alignment are replaced by tabs, ruining all alignments and putting me in the hell of restoring all these spaces.
Example:
if (true)
{
—→$foo = 'bar'.
—→•••••••'baz';
}
(—→ are tabs, • spaces)
I indent using two characters wide tabs. The problem is when I select these lines and press the Tab key to add an indentation level: it replaces groups of two spaces by one tab:
—→if (true)
—→{
—→—→$foo = 'bar'.
—→—→—→—→—→'baz';
—→}
Removing the last (odd) space. This is wrong since tabs width is undefined and must be able to vary without breaking the code presentation.
In my settings (Editor Component → Editing → Indentation), I set Indent using on Tabulators and Spaces but it doesn't save it and returns immediately on Tabulators.
Is it a bug? Or is my Kate misconfigured?