Ask HN: What is your method for typing quotes and parentheses?

1 points by pft ↗ HN
I know this sounds a bit strange, but I can't decide which method is more efficient:

Method 1: - Type the quotes first, then go back and fill them in - For example: 1. print() 2. print("") (use back arrow) 3. print("Hello world") (use back arrow again) - This way you don't forget to end the quotes or parentheses.

Method 2: - Just type as you go along - This method is simpler but decreases the chance of accidentally forgetting to end quotes

4 comments

[ 3.4 ms ] story [ 19.6 ms ] thread
I use an editor that inserts a closing paren/brace/quote ahead of the cursor when I open one.
just out of interest which editor is this?
I fill in as I go. If I lose track of how nested I am, it makes me pause and reconsider what I'm doing.