How to change the Class Prefix in Xcode 4?

XcodeXcode4xcode4.2xcode4.3

Xcode Problem Overview


When creating a project in Xcode 4, it asks what Class prefix to add to all new files.

Is there a way to change (or remove) this, after a project is already started?

Xcode Solutions


Solution 1 - Xcode

In Xcode 4.3 at least it is persistent. To change it click on your project then in the right hand menu there is an option to change it. If you don't have the right hand menu open hit the button up at the top to make it appear.

enter image description here

Solution 2 - Xcode

To add class prefix or change prefix for a project

enter image description here

While adding new files to the project, we get the filename with the prefix where we can append the rest of the filename.

enter image description here

Hope this will help you :)

Solution 3 - Xcode

Outdated Answer - Recent versions use this prefix for all new classes now.

> This only affects the files created from a project template when you > create a new project. It's not a persistent setting and has no affect > when creating new files.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionTigerCodingView Question on Stackoverflow
Solution 1 - XcodeodythView Answer on Stackoverflow
Solution 2 - XcodeAswathy BoseView Answer on Stackoverflow
Solution 3 - XcodeJoshua NozziView Answer on Stackoverflow