Disclaimer: I know that there are many, in part strong, opinions regarding if tabs or spaces are the "best" form of indentation. I have discovered that it doesn't make much of a difference, it all depends on what you're used to (I used to be a space-indenter and have since converted after working a lot with code that is tab indented). What does matter though is that it is consistent, or formatting the code becomes somewhat "random".
I'm using Lazarus to write some code that is to be used in a project which uses tab as indentation. I've tried to configure it for using tabs to the best of my abilities, but it is inconsistent. My actual code ends up being a mix. It looks to me like the codetools (or something related) doesn't respect that tab is indentation.
As it is now, I have to manually "clean" the files before making git commits. It's a bit of a pain. I haven't found a way to actually show whitespace characters either, and the search/replace function is somewhat "hard to work with" (especially since it keeps closing every time you use it and you have to make sure the cursor isn't on something when opening it again, or it will replace whatever search phrase you were working on). So, I'm opening and formatting everything in another editor before committing. After that I have to make sure that the files are reloaded in Lazarus, so that the changes are kept. In, short, it's a hassle.
Is there a way to make Lazarus work properly with tabs, or do I have to keep doing this for every commit?