7 ms·
> They’re faster to use. That's not really an argument. Every code editor can be configured to interpret the tab key as desired number of spaces.
by insulanian 6y ago
> They’re faster to use.
That's not really an argument. Every code editor can be configured to interpret the tab key as desired number of spaces.
- saagarjha 6y agoNot every editor can do this, and this sounds like a “solution” to a manufactured problem.
- opo 6y agoDo any code editors also treat a delete of one of these spaces as removing the tab width size? (I've never seen it, but maybe there are ones that do that.) What tends to happen is that yes, the tab enters the N spaces, but if you have to move code around, you can find yourself deleting a lot of spaces.
- insulanian 6y agoI'm using VS Code and it does do that. It deletes back to the previous indentation level. In the case when you move code around you will anyway go for Tab/Shift+Tab in any editor.
- opo 6y agoYou are right, it looks like it tries to do the right thing on indent. Though if you try and use tabs to align anything after an indent it just treats them as spaces.