Recent

Author Topic: Unwanted tabs being inserted  (Read 1721 times)

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Unwanted tabs being inserted
« on: July 26, 2015, 11:16:14 am »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • Debugger - SynEdit - and more
    • wiki
Re: Unwanted tabs being inserted
« Reply #1 on: July 26, 2015, 05:08:56 pm »
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"

 

TinyPortal © 2005-2018