2 ms·
How can it handle whitespace differences when pasting correctly? I have a conditional block. I want to paste some code at the end of it. Do I want to paste it
by jameshart 12y ago
How can it handle whitespace differences when pasting correctly?
I have a conditional block. I want to paste some code at the end of it. Do I want to paste it inside the condition, so indented the same as the preceding line - or outside the condition,so indented one level less than the preceding line?
With a brace delimited language, if I put the cursor inside or outside the brace and paste, an editor has enough information to correctly indent it. With whitespace delimiting, the editor doesn't have enough information.