Unfortunately, there is no such setting - after pasting the code, you have to hit Alt + Enter to import the missing units.
But sounds like an interesting feature to me - maybe you wanna file a feature request here?