To simulate this, you would need also to add a quote in the actual line being type. This is where the problems occurs as it thinks that line you are typing, with the opening quote, should apply to the rest of code, being put in quotes, those the first quote of the rest of code is now treated as the end quote, thus the text from that portion is now being replaced with proper caps as the designer is doing too much.