Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How does it know when to end a block?


The autoformatter does it based on indentation, but when writing code the editor just inserts it when you open a block (after your cursor), same way } is added when you type { in other languages.


Ahh OK, I see, thanks. I don't really see much difference with whitespace sensitive languages, I've never really had problems with it. Maybe I've been lucky.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: