My team was instructed to use a special coding standard, and part of this standard should use .cc as a suffix for class C implementation files (for the sake of argument, it could be .cxx, .C ++ or any number of other suffixes that are not .cpp).
We use the Eclipse CDT (C / C ++ Development Toolkit) for development, however in the "New C ++ Class" dialog box, when you enter the class name as the class name, for example, it automatically names your source file as Classname.cpp.
Of course, I can uncheck the "Use by default" checkbox and restore the suffix, but these are a few additional steps and a lot to ask each Engineer for a large ion project, which he needs to remember every time they create a new C ++ class.
I was stumped, however, trying to find an option that allows you to specify the default suffix for C ++ files in the Eclipse CDT. Do any Eclipse gurus know about this once?
source
share