Posted - Dec 27 2020 : 09:41:36 AM
We find your snippet translation really useful in our file templates, since we have a coding style which bases the file names on the class names, and the header guard on the file name.
However, there are a couple of additions we would find really useful.
Our class format is Pascal, e.g. MyClass, so the header would be in MyClass.h and the code in MyClass.cpp.
The header has a header guard all uppercase with underscores between words - so MyClass.h will have a header guard:
...code definitions go here...
#endif // MY_CLASS_H
It would be really nice if we could autogenerate this in our header file template snippet, but at the moment all we have is $FILE_BASE_UPPER$ and we have to go back and add the additional underscores ourselves.
Please could we have an additional modifier which converts to uppercase with words split with underscores?
If adding this, it might also make sense to add a lowercase_snake_case modifier as well.
Thanks in advance,
Edited by - grandchain on Dec 28 2020 06:25:50 AM