Search code examples
xcodemacosxcode4

Reset Xcode 4 window positions


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.


Solution

  • 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.