resize for code, focus to editor

added resize for code editor —default focus to code editor after any
changes.