How do I make Xcode open .h first instead of .m files?

When creating a new class in Xcode, the default behavior is to open and display the implementation file (.m). How do I force Xcode to open the header (.h) file first? I often have to change my .h file frequently to change things like member variables, properties, and inheritance.

+3


source to share


1 answer


When you add a new class, the first file added is -.h and the last file is -.m.



And Xcode opens the last file for you, which is .m. Now you want to reverse it, which is not possible unless it is a custom fit or a hack, but your best bet is to use Ctrl+ Cmd+ Upor Downto switch between .h and .m

+1


source







All Articles