Enrico Detoma
Enrico Detoma

Reputation: 3179

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.

Upvotes: 10

Views: 5440

Answers (2)

Migrant Programmer
Migrant Programmer

Reputation: 216

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.

Upvotes: 20

Gary C
Gary C

Reputation: 19

I assume you're referring to the user data files in the project package contents? You can try deleting User -> Library -> Preferences -> com.apple.dt.Xcode.plist. That should reset everything.

Upvotes: 1

Related Questions