I've had this happen with VS code. When your system is under load, VS Code not only gets keystrokes in a laggy way, the characters arrive in the wrong order.
Haven't had this problem with other text editors.
Haven't had this problem with other text editors.