Hi Andrew, On 3/12/19 9:01 pm, Andrew Barnert wrote:
On Dec 2, 2019, at 21:00, Guido van Rossum
wrote: 3) I have been known to hold a ruler against my screen to double-check indentation. Well, if that isn’t part of your integrated development environment, you just need to switch to emacs and give it control of a 3D printer and a robot and it can integrate holding up a ruler for you. :)
But more seriously, the unobtrusive colored vertical indent-guide lines (that I think Sublime popularized, but lots of editors do it now, including at least two variations for emacs) really do solve this for me just as well, even with horrible random-indentation code. The only reason I still use the keystroke to highlight the start of the block instead is too many decades of muscle memory using emacs.
That doesn’t help when there’s so much code in the inner block that it doesn’t fit on the screen, so I can’t trace the line up to the start. But does a ruler help any better? And would an “end for”?
Yep. It does for me :-) For example you'd easily and quickly see the difference between "end for" and "end while". cheers, Jan