Unwanted tabs being inserted lazarus / 9-Editor ---------------------------------------------------------------------- howardpc · 2015-07-26 09:16 I use Lazarus 1.4.2 mainly on Windows. Although in IDE Options "Tabs to spaces" is set, and "Auto indent" is set to Spaces, I find the IDE is sometimes inserting tab characters rather than spaces. I discovered this because formatting is at times completely messed up, and turning on "Show special characters" reveals sequences of tabs at the beginning of (seemingly random) lines where I expected to find spaces. Also, even though "Tab widths" is set to 1, the IDE is inserting 5 spaces when I press the Tab key. Could this be down to some unrecognised misconfiguration or corruption of configuration files, or has a bug/regression recently been introduced? ---------------------------------------------------------------------- Martin_fr · 2015-07-26 15:08 Do you use "smart intend"? (See options > codetools > general) If you can find steps to reproduce, then please report on the bugtrackec, together with an upload of your editoroptions.xml, codetoolsoptions.xml, environmentoptions.xml (all can be found in primary config path (search wiki)) Also include if it is related to codetools or not. Unfortunately without steps to reproduce this will be hard to address. Also (IIRC applies if not using codetools) check that your "auto intend" is set to "spaces". If this includes tabs, it may override the "tab to spaces"