Home > Mobile >  Tab replaced to space automatically in Delphi11
Tab replaced to space automatically in Delphi11

Time:02-11

I'm using delphi 11.0(28.0.42600.6491). Typing some tabs in code editor, and after a short pause, typing any character. Then, I found tabs are replaced to space automatically.

And it seems to be happened when input character after already exists line. My problem is like GIF image(animated).

I don't want that. tabs must be tabs strictly. Is there any setting or way to do that?

enter image description here

CodePudding user response:

The IDE Settings "Use tab character" and "Keep trailing blanks". Note you would also need to uncheck "Cursor through tabs" to see the cursor jump otherwise it will go space by space through tabs.

The "Keep trailing blanks" setting is really "Keep trailing whitespace" and deletes any tabs and spaces at the end of lines after a short delay. The cursor stays past the end of the line so if you type something it then puts in spaces.

enter image description here

CodePudding user response:

This is a bug (in my opinion) that started in 10.4. I have reported it as RSP-36776: https://quality.embarcadero.com/browse/RSP-36776

  • Related