News for hackers. Stuff that matters.

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

( 4 comments | on HN )
Re:Ask HN: What is your method for typing quotes and parenth... by FroshKiller on Monday December 22, 2014 @11:46AM (#8783782)
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.
Re:Ask HN: What is your method for typing quotes and parenth... by kw71 on Monday December 22, 2014 @11:44AM (#8783769)
I use an editor that inserts a closing paren/brace/quote ahead of the cursor when I open one.
Re:Ask HN: What is your method for typing quotes and parenth... by pft on Monday December 22, 2014 @12:45PM (#8784088)
just out of interest which editor is this?
Re:Ask HN: What is your method for typing quotes and parenth... by kw71 on Monday December 22, 2014 @06:30PM (#8785908)
emacs!