Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the Class Prefix in Xcode 4?

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?

like image 745
TigerCoding Avatar asked Nov 09 '11 17:11

TigerCoding


3 Answers

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

like image 73
odyth Avatar answered Nov 12 '22 23:11

odyth


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

like image 36
Aswathy Bose Avatar answered Nov 12 '22 22:11

Aswathy Bose


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.

like image 6
Joshua Nozzi Avatar answered Nov 12 '22 21:11

Joshua Nozzi