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

Non modal editors have a different type of danger. If you accidentally press a space at the beginning of a line in a Python file, you'll get an IndentationError when running it. If you press a d somewhere in any programming language you likely get a syntax error or a bad identifier.

Of course you have to save to file before those errors become real. Apparently Helix autosaves when losing focus, which is quite dangerous IMHO: accidental mistakes and code left unfinished when switching to another window to do anything. I prefer to save when I want to save.



Auto-saving is off by default


Iirc, you can turn this behavior off with `editor.auto-save = false`.




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

Search: