A good way to avoid inadvertently adding tabs to a file is making them visually stand out from the rest of your code. This proves to be effective for syntax highlighting. It should achieve equal levels of success for this purpose.
So lets change our Atom stylsheet to make these catch the eye:
Add the following rule to this stylsheet.
// Colour the tab character RED
atom-text-editor::shadow {
.invisible-character.hard-tab {
color: @syntax-background-color !important;
background-color: red !important;
}
}
Save the file and reload Atom (ctrl+alt+cmd+l
).
Done!