There should be a check so that if the cursor is in the middle of an expression @{} then when adding a new element, it doesn't add @{} at the same time.
Note that we know there should be many things done on this scripting editor, but this one is really necessary on its own, as people loose time "trusting" what is generated by Studio.