Hello everyone!
I have been using XCode for a while now and would like to see what other people can do on this front. I modified my template .h file to do something similar to the following (for a file called Molecule.h):
Unfortunately I have to manually change the ".h" to be "_h" each time I create new files. Considerably less work than adding all that information manually but still annoying.
Does anyone have a quick way to do that?
The file I will modify contains the following text, modified from original content:
I have struggled a fair bit to find documentation on this online so any advice would be greatly appreciated!
Thanks,
ender
I have been using XCode for a while now and would like to see what other people can do on this front. I modified my template .h file to do something similar to the following (for a file called Molecule.h):
#ifndef Molecule.h
#define Molecule.h
#endif
Unfortunately I have to manually change the ".h" to be "_h" each time I create new files. Considerably less work than adding all that information manually but still annoying.
Does anyone have a quick way to do that?
The file I will modify contains the following text, modified from original content:
I am unsure how to manipulate the above to take the file name (without path).#ifndef «FILENAME»
#define «FILENAME»
/*
* «FILENAME»
* «PROJECTNAME»
*
* Created by «FULLUSERNAME» on «DATE».
* Copyright «YEAR» «ORGANIZATIONNAME». All rights reserved.
*
*/
#endif
I have struggled a fair bit to find documentation on this online so any advice would be greatly appreciated!
Thanks,
ender