When you say above here 'switching back and forth', do you mean between the HTML Editor and VSD, or do you mean between the code mode and the visual mode of the HTML Editor? Actually, neither should be done. I have already warned you about changes made outside VSD will not take affect when the files are reopened in VSD, but also between the two modes of the HTML Editor should not be switched, because it will mess up your code as the two are using completely different ways of positioning the various page elements.
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com