How can I download a previous version of Xcode?

Current version

The current version of Xcode can be accessed either through the App store, or the Xcode downloads page.

Older versions

Older versions of Xcode can be found by logging into the Apple Developer Downloads page and searching for the version of Xcode you need.