On the code pane, just below where the tabs for the files are displayed, there is a checkbox to toggle Source on Save. Is that checked?