[Tex/LaTex] Unwanted tabulation in Kile editor after pressing Return

indentationkile

I'm using Kile to edit LaTeX code.

When I press Return to get a new line, Kile does create a new line but automatically adds a tabulation (an indentation) at the beginning of the new line. This happens regardless of whethere there are trailing spaces after the cursor when I press Return.

This is quite annoying (especially when I paste things, it adds additional tabs, and I end up with a pyramid of indents…)

I have tried to change the indentation mode to "None" (and other values e.g. Python) to no avail. Any suggestions on the options I should look at? I tried a lot of them, but I'm not sure which one is the correct one. (Or could it be a bug?)

Best Answer

OK, it's a bit tricky. Go to Settings > Configure Kile; under Editor > Open/Save > Modes & Filetypes, change "Indentation Mode" to None. Then you have to close Kile, and when reopen, in a new file, there will be no auto-indentation.