I revive a previous question, but now for Xcode 4.
How can I reset window positions for a project in Xcode 4?
The old question was: Xcode window positions when switching from dual to single monitor
I've tried to delete user data files as suggested in the other question, but it didn't reset the window positions.
You need to delete the xcuserdata/username.xcuserdatad/UserInterfaceState.xcuserstate file inside the workspace bundle. You can get to it via Finder "Show Package Contents" or via the Terminal.
If you're not using a workspace, your xcodeproj will have a workspace file inside it that you can open up.
Delete the file and re-open the workspace and your window settings will be back to default.
BTW, this happens to me all the time when I accidentally leave a double-clicked file open and then close the main window.. it always comes back helpfully showing the single file with nothing else.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With