How to change the Class Prefix in Xcode 4? How to change the Class Prefix in Xcode 4? xcode xcode

How to change the Class Prefix in Xcode 4?


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


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 :)


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.