3 ms·
I have frequently had code like this: if other < mine: update_comments(other, mine) write_billing(other) and then I paste it, but get th
by lostdog 5y ago
I have frequently had code like this:
if other < mine:
update_comments(other, mine)
write_billing(other)
and then I paste it, but get the indentation wrong on the last line, and it falls outside of the if block. Maybe my brainbox needs an upgrade.
And yeah, pasting code into a repl would be easier too if I could rely on braces to convey scope.
- housecarpenter 5y agoI normally select the whole block that I just pasted and then press Tab or Shift+Tab to indent/dedent the whole thing at once---no possibility of missing the last line then. This works in most editors.