3 ms·
Ask HN: What is your method for typing quotes and parentheses?
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
- kw71 12y agoI use an editor that inserts a closing paren/brace/quote ahead of the cursor when I open one.
- FroshKiller 12y agoI fill in as I go. If I lose track of how nested I am, it makes me pause and reconsider what I'm doing.