I have searched the forums, did not see a thread, so starting this one.
I started to see a lot of errors start to show up in the editor. It would keep telling me: “Code needs to line up”.
I would look at the code, and everything lined up, all my indents and everything were perfect.
Then I saw it, it was a difference between spaces “.” and tabs “‣”. If you have spaces indenting a line, and the next line is using tabs, it will not detect them as being at the same indentation. However, if you take your code to an external editor, and convert all the tabs to spaces or all the spaces to tabs, you are in good shape - no editor errors.
The problem is that sometimes if you hit the tab key - you get a tab character, other times you will get the 4 spaces. Not consistent.
I am for using tabs, spaces are harder to count and see if you are off by a space or not.