The behavior you're describing in Visual Studio Code (VSCode) happens when "Overwrite mode" is enabled. In this mode, typing overwrites the text ahead instead of inserting new text. This is similar to the "Insert/Overwrite" mode in many text editors.