4 ms·
> If it were really a huge problem, pretty much any editor in existence can do a Replace All to get back perfect spaces-indented code. Sometimes tabs or spaces
by a3n 7y ago
> If it were really a huge problem, pretty much any editor in existence can do a Replace All to get back perfect spaces-indented code.
Sometimes tabs or spaces are data, like in strings. Replace All is too blunt.
- jchw 7y agoFor displaying code on websites, it may be a necessary step even if it loses data. Still, at least for most of my personal use cases, it's fine - If I need a tab character in a string I almost always use a tab escape (like \t) anyways, the main exception being for code generation where it is fine if it changes anyways.