2 ms·
How does it know when to end a block?
by stavros 2y ago
How does it know when to end a block?
- tredre3 2y agoThe 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.
- stavros 2y agoAhh 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.