Timeline for Why use monospace fonts in your IDE?
Current License: CC BY-SA 2.5
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 9, 2013 at 20:06 | comment | added | Roman Starkov | @endolith You would insert a tab between the two parentheses on the first line, and a tab before the opening parenthesis on the second line. Now this would add some extra space between the two parentheses on line 1 in a vanilla implementation, but you'd get an alignment that is maintained on edits, which sounds like a very worthwhile tradeoff to me. In fact, I think I'd even add a tabstop after the closing parenthesis on both lines. See screenshot, in all its variable width font glory, or try it yourself. | |
Feb 8, 2013 at 18:38 | comment | added | endolith | @romkyns: How would you line up the parentheses in this case? | |
Feb 8, 2013 at 18:23 | comment | added | Roman Starkov | @endolith Well they sure are smarter than spaces... :) You still need to decide what you want aligned with what; the big advantage is that once you've done that, things stay aligned even if other things change. | |
Feb 8, 2013 at 15:46 | comment | added | endolith | @romkyns: elastic tab stops are smart enough to align the parenthesis with the other parenthesis? | |
Feb 28, 2012 at 16:30 | comment | added | Roman Starkov | A better way to achieve this is elastic tabstops, even if you stick with the monospaced font. Not that it's a practical alternative in current editors... | |
Feb 27, 2012 at 12:38 | comment | added | Sebastian Mach | @Calmarius: "making it readable" is part of my all day coding, I do it unconsciously. If you put effort into changing code, you should also put effort in reducing maintenance cost. | |
Oct 8, 2011 at 9:12 | comment | added | Calmarius | Valid point. But vertically lining up things has a problem: what if you need to change something in that if statement? You will probably need to realign all the stuff. | |
Jul 13, 2010 at 4:36 | history | made wiki | Post Made Community Wiki by user1228 | ||
Oct 20, 2008 at 14:30 | history | answered | DGentry | CC BY-SA 2.5 |