doing that, I often mark the code I want copied and shift+tab the code until it is left aligned in the file and make a copy. Then ctrl+z to snap it back into place. It would be nice with a special shortcut, button, or something else that copies code so that it looks good ...