when i paste a code snippet seems it get inserted line by line which - messes the indentation - when trying to undo it , it undo it character by character instead of all at once