Reputation: 43
I got my sass
files from another user in the project, and have just started to modify them. When I compile, I get this error for the line below my added line:
Error: Expected spaces, was tabs.
However, all the white space is tabs. According to my editor, Brackets, and has been working fine for weeks.
Why does this matter enough to thrown an error? (It's fixed easily enough with a Find/Replace.)
Upvotes: 4
Views: 10266
Reputation: 33449
Consistent indentation is a good code style. Especially if you mix spaces and tabs and share the files with other people, it could get wild.
An .editorconfig
file might help you, if your editor (and your coworkers editors) understand it
Upvotes: 1