Re:Ziglings: Learn the Zig programming language by fixing ti...
by smallstepforman on Saturday February 13, 2021 @11:09PM
(#26129593)
The reason hard tab people dislike code editors which convert to spaces is that pressing backspaces during editing removes one space, not all auto-inserted spaces. This ends up being very frustrating (since you need to press backspace 4 times). Most “used” languages allow both. Accept tab as another white space character and life goes on. Compile errors for hard tabs is a stubborn decision.
[ Parent
| on HN ]
Re:Ziglings: Learn the Zig programming language by fixing ti...
by dnautics on Saturday February 13, 2021 @11:20PM
(#26129649)
> The reason hard tab people dislike code editors which convert to spaces is that pressing backspaces during editing removes one space, not all auto-inserted spaces
This is simply not the case for any editor I have used recently.
Re:Ziglings: Learn the Zig programming language by fixing ti...
by sedatk on Sunday February 14, 2021 @12:19AM
(#26129907)
In addition to this, "de-indentation" can be achieved with Shift-Tab instead of backspace.
Re:Ziglings: Learn the Zig programming language by fixing ti...
by kortex on Sunday February 14, 2021 @08:46AM
(#26132339)
Any editor worth it's salt will indent with tab and de-indent with shift tab with the cursor at the first non whitespace. Any good editor will de-indent with the cursor anywhere on the line.