"... hold down Alt, Ctrl, and Shift keys (Mac: Command, Option, Shift) while starting up Photoshop. A dialog box will appear asking if you wish to delete the preferences/settings file."
That should do it.
Beyond resetting preferences, once you have things the way you want them, go to Window > Workspace > New Workspace and save your settings under a name of your choice. Then, if it happens again, go to Windows > Workspace and click on that name and everything will be back where you want it.
thinx sir you solve my big prolems